ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Core.Data.Raster Namespace / Raster Class / MapToPixel Method
Map space coordinate x.
Map space coordinate y

In This Topic
    MapToPixel Method
    In This Topic
    Converts a location in map space (X and Y) to pixel space (Column and Row). This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public Tuple<int,int> MapToPixel( 
       double x,
       double y
    )
    Public Function MapToPixel( _
       ByVal x As Double, _
       ByVal y As Double _
    ) As Tuple(Of Integer,Integer)

    Parameters

    x
    Map space coordinate x.
    y
    Map space coordinate y

    Return Value

    A tuple containing two integer values representing the pixel space coordinate column and row respectively.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also