ArcGIS Pro 3.7 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 Function MapToPixel( _
       ByVal x As Double, _
       ByVal y As Double _
    ) As Tuple(Of Integer,Integer)
    public Tuple<int,int> MapToPixel( 
       double x,
       double y
    )

    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 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also