ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer
Draw Method
See Also 
ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer Namespace > ScaleBarDrawingUtility Class : Draw Method




imageDescriptor
ImageDescriptor with settings for the scale bar such as height, width, transparency, and image format.
format
ScaleBarFormat with format of the scale bar including font and color of the bar and the bar units.
scale
Scale at which to draw the scalebar.
Draws the scale bar with the input settings.

Syntax

Visual Basic (Declaration) 
Public Shared Function Draw( _
   ByVal imageDescriptor As ImageDescriptor, _
   ByVal format As ScaleBarFormat, _
   ByVal scale As Double _
) As Bitmap
Visual Basic (Usage)Copy Code
Dim imageDescriptor As ImageDescriptor
Dim format As ScaleBarFormat
Dim scale As Double
Dim value As Bitmap
 
value = ScaleBarDrawingUtility.Draw(imageDescriptor, format, scale)
C# 
public static Bitmap Draw( 
   ImageDescriptor imageDescriptor,
   ScaleBarFormat format,
   double scale
)

Parameters

imageDescriptor
ImageDescriptor with settings for the scale bar such as height, width, transparency, and image format.
format
ScaleBarFormat with format of the scale bar including font and color of the bar and the bar units.
scale
Scale at which to draw the scalebar.

Return Value

Bitmap image of the scalebar.

See Also

© 2010 All Rights Reserved.