MapGuide API Reference
 All Classes Functions Variables Enumerations Enumerator Friends
virtual MgByteReader* MgRenderingService::RenderMap ( MgMap map,
MgSelection selection,
MgEnvelope extents,
INT32  width,
INT32  height,
MgColor backgroundColor,
CREFSTRING  format,
bool  bKeepSelection 
) [pure virtual]

Renders the specified MgMap to the requested image format.

Parameters:
mapInput map object containing current state of map.
selectionInput map feature selection. Specifies the selected features on the map
extentsInput map extents. Specifies the extents for the map
widthInput image width. Specifies the image width in pixels
heightInput image height. Specifies the image height in pixels
backgroundColorInput background color. Specifies the map background color
formatInput image format. Defines the format of the resulting image
bKeepSelectionInput true if you want to keep the selection
Returns:
A byte reader containing the rendered image