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


IRaster2.MapToPixel Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (DataSourcesRaster)  

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,
  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

Product Availability

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

See Also

IRaster2 Interface