all groups > dotnet drawing api > august 2006 >
You're in the

dotnet drawing api

group:

ScaleTransform


ScaleTransform Mehdi
8/30/2006 1:39:02 PM
dotnet drawing api: Hi, I have been trying to achieve a zooming effect. ScaleTransform seemed to
be the obvious choice. But what I need is a zooming from the center of the
screen in all directions, and scaletransform scales it from the (0,0) point
to the right and bottom only.
I have tried using combinations of TranslateTransform and ScaleTransform but
I don't get the right effect. And TranslateTransform changes the coordinate
system in a manner whereby my existing code (selection by mouse, etc) fails.

So, is there a way to achieve zooming from the screen center with some kind
of transformation, or maybe a matrix? If not, then what is the best approach?

Re: ScaleTransform SharpCoderMP
8/31/2006 2:29:01 AM
yes matrix would be helpful. for tutorial on transformations and mouse
backtracking see GDI+ tips and tricks on www.bobpowell.net

[quoted text, click to view]
AddThis Social Bookmark Button