ESRI.ArcGIS.ADF.Web
TransformGeometryToScreen(Geometry,TransformationParams) Method
See Also  Send Feedback
ESRI.ArcGIS.ADF.Web.Geometry Namespace > Geometry Class > TransformGeometryToScreen Method : TransformGeometryToScreen(Geometry,TransformationParams) Method




geometry
Geometry to transform
transformationParams
Transformation parameters. May be obtained from the Map.
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) 
Public Overloads Shared Sub TransformGeometryToScreen( _
   ByVal geometry As Geometry, _
   ByVal transformationParams As TransformationParams _
) 
Visual Basic (Usage)Copy Code
Dim geometry As Geometry
Dim transformationParams As TransformationParams
 
Geometry.TransformGeometryToScreen(geometry, transformationParams)
C# 
public static void TransformGeometryToScreen( 
   Geometry geometry,
   TransformationParams transformationParams
)

Parameters

geometry
Geometry to transform
transformationParams
Transformation parameters. May be obtained from the Map.

Remarks

Use this form of the method instead of TransformGeometryToScreen(Geometry, Envelope, int, int) in order to account for rotation of the Map. The transformationParams may be obtained from the Map with Map.GetTransformationParams.

This method transforms each point of the geometry to screen pixel coordinates, similar to calling Point.ToScreenPoint() on each point of the geometry object.

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

© 2011 All Rights Reserved.