ESRI.ArcGIS.ADF.IMS
Draw() Method
See Also  Example
ESRI.ArcGIS.ADF.IMS.Carto Namespace > View Class > Draw Method : Draw() Method




Redraws the map with the current information defined in the associated MapService object.

Syntax

Visual Basic (Declaration) 
Public Overloads Overridable Function Draw() As CartoImage
Visual Basic (Usage)Copy Code
Dim instance As View
Dim value As CartoImage
 
value = instance.Draw()
C# 
public virtual CartoImage Draw()

Return Value

New redrawn map image, in the form of a CartoImage object. Use CartoImage.Url to retrieve the image's URL.

Example

This example updates the extent of the map, then draws it and displays the resulting image in an image control.
C#Copy Code
Envelope newExtent = new Envelope(10, 30, 30, 50); 

mapView.Extent = newExtent; 

  

CartoImage resultImage = mapView.Draw(); 

imgMap.ImageUrl = resultImage.Url; 

    
Visual BasicCopy Code
Dim newExtent As New Envelope(10, 30, 30, 50)

mapView.Extent = newExtent



Dim resultImage As CartoImage = mapView.Draw()

imgMap.ImageUrl = resultImage.Url

Remarks

This method draws the map at the current map extent as defined by Extent. It returns a CartoImage object; use its Url property to get the image URL, or use the view's Extent property.

See Also

© 2010 All Rights Reserved.