zoom a 2D graphic object
we can zoom a 2D graphic object by scale x,y coordinates.
For instance, a rectangle will be enlarged to double size by doubling the coordinates,
My question is to seek the idea of keeping the object size unchanged but zoom the inside detail?
Just like mapquest,click zoom button more details will be clearly seen but the frame size unchanged?
Thanks
[380 byte] By [
ardmorea] at [2007-11-27 10:34:27]

# 1
There are a couple of solutions to this that I can think of.
The first would be to have bitmaps prerendered at multiple resolutions with all the detail necessary for that resolution, and then display the lowest resolution image that gives the greatest amount of detail for the resolution needed by the application at the time. This method is used in 3d graphics programs to show lower detail textures on objects that are farther away.
For very high magnifications, the large images may have to be partitiioned into multiple subimages, and of course you would only display the ones necessary to fill the viewing window.
The other method would be to not use bitmaps at all, but store things as Shapes, which you can scale as required via an appropriate AffineTransform as necessary.
These two methods are not at all mutually exclusive, so combining them and using bitmaps in one area and scaled shapes in another is entirely possible.