ESRI.ArcGIS.ADF.IMS
ToScreenPoint Method
See Also 
ESRI.ArcGIS.ADF.IMS.Geometry Namespace > Point Class : ToScreenPoint Method




extent
Map envelope on which to based the conversion to screen coordinates. Normally the current MapView extent.
imageWidth
Width of the map image, in pixels.
imageHeight
Height of the map image, in pixels.
Converts a point in map coordinates to a Point in screen coordinates (pixel coordinates).

Syntax

Visual Basic (Declaration) 
Public Function ToScreenPoint( _
   ByVal extent As Envelope, _
   ByVal imageWidth As Integer, _
   ByVal imageHeight As Integer _
) As Point
Visual Basic (Usage)Copy Code
Dim instance As Point
Dim extent As Envelope
Dim imageWidth As Integer
Dim imageHeight As Integer
Dim value As Point
 
value = instance.ToScreenPoint(extent, imageWidth, imageHeight)
C# 
public Point ToScreenPoint( 
   Envelope extent,
   int imageWidth,
   int imageHeight
)

Parameters

extent
Map envelope on which to based the conversion to screen coordinates. Normally the current MapView extent.
imageWidth
Width of the map image, in pixels.
imageHeight
Height of the map image, in pixels.

Return Value

Screen-point (pixel-point) of converted map Point.

Remarks

This method returns the pixel-location equivalent of the input Point, which is in map coordinates.

Note that screen locations start from the upper left of the the image, so that 0 in the Y dimension is at the top of the image.

See Also

© 2010 All Rights Reserved.