ESRI.ArcGIS.ADF.Web
TransformGeometryToScreen(Geometry,Envelope,Int32,Int32) Method
See Also 
ESRI.ArcGIS.ADF.Web.Geometry Namespace > Geometry Class > TransformGeometryToScreen Method : TransformGeometryToScreen(Geometry,Envelope,Int32,Int32) Method




geometry
The geometry to transform.
extent
The Envelope representing the visible region
imageWidth
The width of the image in pixels that corresponds to the extent.
imageHeight
The height of the image in pixels that corresponds to the extent.
Transforms a geometry in map units to screen units. The object is modified by this method. Use the Clone method on the original Geometry object if you need to keep the original unmodified.

Syntax

Visual Basic (Declaration) 
<ObsoleteAttribute()>
Public Overloads Shared Sub TransformGeometryToScreen( _
   ByVal geometry As Geometry, _
   ByVal extent As Envelope, _
   ByVal imageWidth As Integer, _
   ByVal imageHeight As Integer _
) 
Visual Basic (Usage)Copy Code
Dim geometry As Geometry
Dim extent As Envelope
Dim imageWidth As Integer
Dim imageHeight As Integer
 
Geometry.TransformGeometryToScreen(geometry, extent, imageWidth, imageHeight)
C# 
[ObsoleteAttribute()]
public static void TransformGeometryToScreen( 
   Geometry geometry,
   Envelope extent,
   int imageWidth,
   int imageHeight
)

Parameters

geometry
The geometry to transform.
extent
The Envelope representing the visible region
imageWidth
The width of the image in pixels that corresponds to the extent.
imageHeight
The height of the image in pixels that corresponds to the extent.

Remarks

This method is deprecated because it does not account for possible rotation of the Map. Use TransformGeometryToScreen(Geometry, TransformationParams) instead.

See Also

© 2010 All Rights Reserved.