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




resourceName
The name of the resource to draw.
extent
Extent to draw
imageWidth
Width of output image
imageHeight
Height of output image
dpi
Dpi of output image
drawIfResolutionUnavailable
Whether to draw the resource if it is not available at the requested resolution. If true, the resource will be drawn at a higher (more zoomed out) resolution.
Draws the specified map resource.

Syntax

Visual Basic (Declaration) 
Public Overloads Function Draw( _
   ByVal resourceName As String, _
   ByVal extent As Envelope, _
   ByVal imageWidth As Integer, _
   ByVal imageHeight As Integer, _
   ByVal dpi As Integer, _
   ByVal drawIfResolutionUnavailable As Boolean _
) As MapImage
Visual Basic (Usage)Copy Code
Dim instance As MapDrawUtility
Dim resourceName As String
Dim extent As Envelope
Dim imageWidth As Integer
Dim imageHeight As Integer
Dim dpi As Integer
Dim drawIfResolutionUnavailable As Boolean
Dim value As MapImage
 
value = instance.Draw(resourceName, extent, imageWidth, imageHeight, dpi, drawIfResolutionUnavailable)
C# 
public MapImage Draw( 
   string resourceName,
   Envelope extent,
   int imageWidth,
   int imageHeight,
   int dpi,
   bool drawIfResolutionUnavailable
)

Parameters

resourceName
The name of the resource to draw.
extent
Extent to draw
imageWidth
Width of output image
imageHeight
Height of output image
dpi
Dpi of output image
drawIfResolutionUnavailable
Whether to draw the resource if it is not available at the requested resolution. If true, the resource will be drawn at a higher (more zoomed out) resolution.

Return Value

MapImage with image data or URL.

See Also

© 2010 All Rights Reserved.