Generates a scale bar image for a data frame (map) in an ArcGIS Server map service.
ExportScaleBar(ScaleBar ScaleBar, MapDescription MapDescription, ImageDisplay MapDisplay, Color BackGroundColor, ImageDescription ImageDescription)
Parameter |
Description |
ScaleBar |
Used to set custom ScaleBar properties if necessary. If ScaleBar is Nothing/Null, a default scale bar will be generated. |
MapDescription |
Used to define map properties to determine scale. |
ImageDisplay |
Used to set map image properties, such as height, width, and DPI. Used in conjunction with MapDescription to determine scale. |
Color |
Used to set the background color of the scale bar. By default, the background color is black. |
ImageDescription |
Used to set scale bar image properties such as height, width, image format and return type. |
Return Value
An ImageResult that references to the display properties of the generate scale bar image, such as height, width, and URL, if applicable.
Examples