ArcGIS Pro 2.9 API Reference Guide
MapToPixel Method

ArcGIS.Core.Data.Raster Namespace > Raster Class : MapToPixel Method
Map space coordinate x.
Map space coordinate y
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, Windows 8.1

See Also

Reference

Raster Class
Raster Members