MapGuide API Reference
 All Classes Functions Variables Enumerations Enumerator Friends
virtual MgByteReader* MgRenderingService::RenderMapLegend ( MgMap map,
INT32  width,
INT32  height,
MgColor backgroundColor,
CREFSTRING  format 
) [pure virtual]

Renders the legend for the specified MgMap to the requested size and format.

Parameters:
mapInput map object containing current state of map.
widthInput width of legend image in pixels
heightInput height of legend image in pixels
backgroundColorInput background color. Specifies the map legend background color
formatInput image format. Defines the format of the resulting image
Returns:
A byte reader containing the rendered image