ESRI.ArcGIS.ADF.Web
TransformGeometryToScreen(Geometry,TransformationParams) Method
See Also 
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.

See Also

© 2010 All Rights Reserved.