This document is archived and information here might be outdated.  Recommended version.


IRaster2.MapToPixel Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > DataSourcesRaster > ESRI.ArcGIS.DataSourcesRaster > Interfaces > IR > IRaster2 Interface > IRaster2.MapToPixel Method
ArcGIS Developer Help

IRaster2.MapToPixel Method

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,
  System.Int32* pColumn,
  System.Int32* 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*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

See Also

IRaster2 Interface