Zoom to center of object [Archive] - XML Elves

Zoom to center of object

Hacc
07-27-2005, 01:28 AM
Hi

I was wondering if anybody has a "zoom and center" function? I'm trying to simulate the Ctrlkey action, but using a button. The problem is not the zoom but the centering of the object... What is the best way to do it? Using viewbox or currenttranslate and currentscale?

Any suggestions would be appreciated!

Thanks!

Anonymous
07-27-2005, 03:59 AM
Look at
http://www.learnsvg.com/tutorial2/zoom.php

on this site

Michel

Hacc
07-27-2005, 08:50 AM
Hi Michel
Thanks for the reply. I looked at this example but it doesn't solve my problem. I need my "button-zoom" to work exactly as "CTRL-key" zoom. I can't find any examples where it center's properly to where I have clicked.

Look at
http://www.learnsvg.com/tutorial2/zoom.php

on this site

Michel

 
Web mp2kmag.com
mapforums.com

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum