Web API Reference MapGuide Open Source
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:
map Input map object containing current state of map.
width Input width of legend image in pixels
height Input height of legend image in pixels
backgroundColor Input background color. Specifies the map legend background color
format Input image format. Defines the format of the resulting image
Returns:
A byte reader containing the rendered image


Comments or suggestions? Send us feedback.