Generates a scale bar image for a data frame (map) in an ArcGIS Server map service.
ExportScaleBar(ScaleBar ScaleBar, MapDescription MapDescription, MapDisplay ImageDisplay, BackGroundColor Color, ImageDescription ImageDescription)
Parameter |
Description |
ScaleBar |
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 |
Set map image properties, such as height, width,
and DPI. Used in conjunction with MapDescription
to determine scale. |
Color |
Set the background color of the scale bar.
By default, the background color is black. |
ImageDescription |
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.
Remarks
Examples