The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



ResizeMap


Unit: SDL_geomap
Class: TGeoMap
Declaration: [1] procedure ResizeMap (LongerEdgeLength: integer);
[2] procedure ResizeMap (Magnification: double);

The method ResizeMap allows to change the size of the map. The method is available in two different overlaid versions: the first version resizes the map in a way that the longer edge of the map image becomes LongerEdgeLength pixels long, while the second version resizes the map by applying the Magnification factor to the map image.

In most cases the magnification should be in a range between 0.2 and 3.0 to create good visible results. Further, magnification factors considerably greater than 1 may result in very large map images which the operating system may not be able to handle.

Hint 1: Please note that ResizeMap is different from adjusting the property Magnification. While ResizeMap physically rescales the map image and adjusts the corresponding calibration data, the property Magnification only changes the scale factor of the visible map.

Hint 2: Be careful when saving a resized map, since the method SaveCalDataAsXML stores only the new calibration data and not the map image. This could result in a possible destruction of the existing map. Thus, in order to save the resized map you should always use the method SaveMap, which automatically stores both the calibration data and the map image (in JPG format).



Last Update: 2012-Oct-20