ESRI.ArcGIS.ADF.Web.UI.WebControls
Draw(Int32,Envelope,Int32,Int32) Method
See Also 
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace > ScaleBar Class > Draw Method : Draw(Int32,Envelope,Int32,Int32) Method




dpi
DPI to use while rendering image.
extent
Envelope used to determine proper scale.
mapWidth
Width in pixels used to determine proper scale.
mapHeight
Height in pixels used to determine proper scale.
Draws the scalebar at the desired DPI and stores the result in a cartographic image object.

Syntax

Visual Basic (Declaration) 
Public Overloads Function Draw( _
   ByVal dpi As Integer, _
   ByVal extent As Envelope, _
   ByVal mapWidth As Integer, _
   ByVal mapHeight As Integer _
) As CartoImage
Visual Basic (Usage)Copy Code
Dim instance As ScaleBar
Dim dpi As Integer
Dim extent As Envelope
Dim mapWidth As Integer
Dim mapHeight As Integer
Dim value As CartoImage
 
value = instance.Draw(dpi, extent, mapWidth, mapHeight)
C# 
public CartoImage Draw( 
   int dpi,
   Envelope extent,
   int mapWidth,
   int mapHeight
)

Parameters

dpi
DPI to use while rendering image.
extent
Envelope used to determine proper scale.
mapWidth
Width in pixels used to determine proper scale.
mapHeight
Height in pixels used to determine proper scale.

Return Value

Cartographic object that encapsulates the scalebar image.

See Also

© 2010 All Rights Reserved.