Introduction to the mapinfo.mapping namespace, Base mapping classes, Mapexport – Pitney Bowes MapXtreme User Manual
Page 240: Mapinfo.mapping namespace

Chapter 12: Adding Mapping Capability to Your Applications
Introduction to the MapInfo.Mapping Namespace
MapXtreme v7.1
247
Developer Guide
Introduction to the MapInfo.Mapping Namespace
The MapInfo.Mapping namespace contains classes, interfaces, and enumerations for creating,
displaying, and exporting maps, layers, modifiers, thematics, legends, and labels.
The Map class is the top level object for a map in a desktop application. Each Map object can
contain exactly one map. Each Map has one Adornment collection and one Layer collection. When
developing a web application a Map gets attached to a MapExport object in order to export that map
image to a bitmap or stream.
As described in
, a map is basically a set of layers piled on top of each other. Using the
Mapping namespace classes, an application can be designed to manipulate those layers as needed.
Base Mapping Classes
This section discusses the base map classes in use in the MapInfo.Mapping namespace. The
diagram below shows a UML representation of the Map hierarchy.
MapExport
The MapExport class is used to export a Map to an image. The properties of this class specify each
aspect of the image, such as BorderPen, ExportSize, Format, etc.
MapExport supports several different image formats including: BMP (default), WBMP, WMF, EMF,
GIF, J2K, JPG, PNG, PSD, TIFF, TIFFCymk, and TIFFLzw. When performance is an issue, the BMP,
GIF, JPG, PNG, and TIFF formats can also be exported using the .NET framework API instead of the
LEADTOOLS API. While the export speed may differ, the quality of the images exported is the same
for both methods.
To select a format, set the ExportFormat property to one of the above formats (e.g.,
ExportFormat.WindowsPNG).
L
The LegendExport class also exports files in these formats using the .NET framework and
LEADTOOLS APIs.