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] Mehdi wrote:
> 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?
>