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

MapToPixel Method
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
)

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