ArcObjects Library Reference (DataSourcesRaster)  

IRaster2.GetPixelValue Method

Gets the pixel value for a given band at a given column and row.

[Visual Basic .NET]
Public Function GetPixelValue ( _
    ByVal iBand As Integer, _
    ByVal iColumn As Integer, _
    ByVal iRow As Integer _
) As Object
[C#]
public object GetPixelValue (
    int iBand,
    int iColumn,
    int iRow
);
[C++]
HRESULT GetPixelValue(
  long iBand,
  long iColumn,
  long iRow,
  VARIANT* pPixelValue
);
[C++]

Parameters

iBand [in]   iBand is a parameter of type long iColumn [in]   iColumn is a parameter of type long iRow [in]   iRow is a parameter of type long pPixelValue [out, retval]   pPixelValue is a parameter of type VARIANT

Product Availability

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

See Also

IRaster2 Interface

.NET Related Topics

DataSourcesRaster | How to identify pixel values using a raster object