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 ESRI.ArcGIS.ADF.Web.Geometry.Envelope, _
ByVal mapWidth As Integer, _
ByVal mapHeight As Integer _
) As ESRI.ArcGIS.ADF.Web.CartoImage |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As ScaleBar
Dim dpi As Integer
Dim extent As ESRI.ArcGIS.ADF.Web.Geometry.Envelope
Dim mapWidth As Integer
Dim mapHeight As Integer
Dim value As ESRI.ArcGIS.ADF.Web.CartoImage
value = instance.Draw(dpi, extent, mapWidth, 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.
Requirements
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
See Also