![]() ![]() |
ESRI.ArcGIS.ADF.IMS | |
TransformGeometryToScreen Method | |
See Also Send Feedback |
ESRI.ArcGIS.ADF.IMS.Geometry Namespace > Geometry Class : TransformGeometryToScreen 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.
Visual Basic (Declaration) | |
---|---|
Public Shared Sub TransformGeometryToScreen( _ ByVal geometry As Geometry, _ ByVal extent As Envelope, _ ByVal imageWidth As Integer, _ ByVal imageHeight As Integer _ ) |
Visual Basic (Usage) | ![]() |
---|---|
Dim geometry As Geometry Dim extent As Envelope Dim imageWidth As Integer Dim imageHeight As Integer Geometry.TransformGeometryToScreen(geometry, extent, imageWidth, imageHeight) |
C# | |
---|---|
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.
This method modifies the geometry object so that its coordinates and extent represent screen pixels, rather than map coordinates. The new pixel-based geometry will be created based on the input image dimensions and map envelope. If you want the geometry to correspond to screen pixels on the current map, be sure to use the extent and dimensions of the current MapView.
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