ZoomRaster -- A zoomable Raster.
ZoomRaster is a subclass of Raster that implements a zoomable image. It handles translation between logical coordinates and screen coordinates.
Reconfigures the ZoomRaster when the window is resized.
Set the zoom factor.
Special method for ZoomRasters. Like fillRectangleX0:Y0:X1:Y1:Color: in Raster, it will fill a rectangle of given geometry and color. This method makes sure that zooming the window does not change the logical position of the rectangle in relation to the logical coordinates. In other words, if a rectangle includes point (10,10) at one zoom factors, then that same point is included for all zoom factors.
Get the current zoom factor.
Make the raster smaller.
Make the raster bigger.