tags:

views:

17

answers:

0

Hello --
We have a canvas with a large number of objects. The user can pan and zoom the view of the canvas.
I am trying to figure out how to implement "show entire canvas" -- that is, zoom and center the canvas in the window to show all objects. We know the max and min X and Y coordinates.

I am looking at our current zoom and pan implementations to try to figure out if there is a way to use them.
Any suggestions on how to do this would be appreciated...
Thanks.