Canvas zoom


The most difficult thing on designing vector image is the canvas. We need to design canvas with accessibility on zoom. For the shape I can design easily, but when we need to zoom in or out I always fail.
Do you know how to design the canvas so it have feature of zooming?
Mybe I'll add a canvas zoom in future.
You can use , refering to the code I posted :
Graphics g = this.CreateGraphics();
g.ScaleTransform(Zoom, Zoom);
in the vectShapes.redraw() method.
Where Zoom is a new vectShapes property.
To let the mouse events work the right way you must sobstitute the e.X and e.Y references with e.X / Zoom and
e.Y / Zoom .
Closed Dec 15, 2010 at 10:43 AM by FrankVerheyen
you can zoom now...cheers,frank