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




mapFunctionalityName
Name of the map functionality. May be null (Nothing) for some functionalities.
mapExtent
Map extent to assume when drawing the scale bar.
mapWidth
Width of the map in pixels.
mapHeight
Height of the map in pixels.
Draws the scale bar.

Syntax

Visual Basic (Declaration) 
Public Function Draw( _
   ByVal mapFunctionalityName As String, _
   ByVal mapExtent As Envelope, _
   ByVal mapWidth As Integer, _
   ByVal mapHeight As Integer _
) As CartoImage
Visual Basic (Usage)Copy Code
Dim instance As ScaleBarFunctionality
Dim mapFunctionalityName As String
Dim mapExtent As Envelope
Dim mapWidth As Integer
Dim mapHeight As Integer
Dim value As CartoImage
 
value = instance.Draw(mapFunctionalityName, mapExtent, mapWidth, mapHeight)
C# 
public CartoImage Draw( 
   string mapFunctionalityName,
   Envelope mapExtent,
   int mapWidth,
   int mapHeight
)

Parameters

mapFunctionalityName
Name of the map functionality. May be null (Nothing) for some functionalities.
mapExtent
Map extent to assume when drawing the scale bar.
mapWidth
Width of the map in pixels.
mapHeight
Height of the map in pixels.

Return Value

A CartoImage that contains the scale bar image.

Remarks

The scale of the map is calculated from the input extent and physical pixel size of the map.

See Also

© 2010 All Rights Reserved.