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....



MapImgFile


Unit:SDL_geomap
Class:TGeoMap
Declaration:property MapImgFile: string;

The property MapImgFile returns the filename of the map image when read, and triggers the loading of a new image when written to. TGeoMap supports Windows bitmap files (*.bmp) and JPEG files (*.jpg or *.jpeg) as map image format.

Please note that MapImgFile does not affect the graticule. Thus you have to be careful to avoid using an invalid graticule (the best way to go is to delete any existing graticule by calling ClearCalibData).

Hint 1: You should use the methods LoadCalDataFromXML or ReadCalDataFromOpenXMLFile or the property CalibDataFile to load both the map image and the graticule.

Hint 2: In the Light Edition the max. size of the map image is restricted to 3 million pixels (i.e. the product of width times height must not be greater than 3 million).

Example: This property is used in the following example program (see http://www.lohninger.com/examples.html for downloading the code): simplegeomap



Last Update: 2012-Oct-20