This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > DataSourcesRaster > ESRI.ArcGIS.DataSourcesRaster > Interfaces > IR > IRaster2 Interface > IRaster2.MapToPixel Method (ArcObjects .NET 10.4 SDK) |
Converts a location (x, y) in map space into pixel space.
[Visual Basic .NET] Public Sub MapToPixel ( _ ByVal x As Double, _ ByVal y As Double, _ ByRef pColumn As Integer, _ ByRef pRow As Integer _ )
[C#] public void MapToPixel ( double x, double y, ref int pColumn, ref int pRow );
[C++]
HRESULT MapToPixel(
double x,
double y,
long* pColumn,
long* pRow
);
[C++]
Parameters x [in] x is a parameter of type double y [in] y is a parameter of type double pColumn [out] pColumn is a parameter of type long pRow [out] pRow is a parameter of type long