Page 1 of 1

about zoom

Posted: Mon Sep 06, 2004 6:38 am
by bugthefixer
i have a site which displays a map and also displays dots dynamilcaly on that map.i want to zoom this map with dots..
any body can tell me any zooming algorithm

Posted: Mon Sep 06, 2004 6:40 am
by feyd
it's simple scaling, overall.. depending on if you want it "smoothed" then you have to add bilinear filtering or better yet trilinear filtering.. but each of those takes a bit more time for the machine to build.. almost exponentially so.. sorta..

thats of course, if you want to do it yourself.. you could just ask [php_man]imagecopyresampled[/php_man] to blow it up, then some simple 2D scaling to relocate the pins..