Page 1 of 1

Zoom control for cards full of vector graphics

Posted: Thu Jan 22, 2009 10:02 pm
by AlexAdams
In addition to my previous posting about scrolling an entire card, I am interested in how to accomplish a zoom in and out for a card full of vector graphics.

Any wisdom in that area?

Thanks,

Posted: Thu Jan 22, 2009 10:30 pm
by Mark
Hi Alex,

First, write a function that recalculates the points of a polygon or the rect of other graphics according to a reference point and a scale. Next, set the lockScreen to true and refresh the points of all polygons (the points is a property) and reposition all other graphics with their new rects. Finally, unlock the screen with a nice fading effect ;-)

Best,

Mark