How Do I Calculate the Maximum Zoom?

Edited on 09/05/09
I'm working on implementing a MultiScaleImage viewer in Flex. I've read through the API docs, but am I missing a function that will calculate the maximum (i.e. 1:1 pixel) zoom for the image?

I've tried using the method shown on your site at http://gasi.ch/blog/inside-deep-zoom-2/, but the zoom level I calculate is much lower than the maximum that can be achieved with the mouse wheel.

I'm working with an image that is 111180 x 13481, which calculates out to a maximum level of 17 using your function, but I can actually zoom into the image up to a level of 33.59, based on setting a scaleconstraint.

My goal is to calculate the maximum zoom possible for an image and set this as the maximum for an HSilder

Thanks!

-chris
Inappropriate?
1 person has this question
See the changes made to this question
User_default_medium