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

IPixelBlock3.NoDataMask Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > DataSourcesRaster > ESRI.ArcGIS.DataSourcesRaster > Interfaces > IP > IPixelBlock3 Interface > IPixelBlock3.NoDataMask Property
ArcGIS Developer Help

IPixelBlock3.NoDataMask Property

The NoData mask for a specified plane.

[Visual Basic .NET]
Public Function get_NoDataMask ( _
    ByVal plane As Integer _
) As Object
[Visual Basic .NET]
Public Sub set_NoDataMask ( _
    ByVal plane As Integer, _
    ByVal pVal As Object _
public object get_NoDataMask (
    int plane
public void set_NoDataMask (
    int plane,
    object pVal
HRESULT get_NoDataMask(
  long plane,
HRESULT put_NoDataMask(
  long plane,
  Variant* pVal
plane [in]

plane is a parameter of type long pVal [in]
pVal is a parameter of type VARIANT plane [in]
plane is a parameter of type long pVal [out, retval]
pVal is a parameter of type VARIANT*

Product Availability

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


Conceptually, a NoData mask is a two-dimensional array with values 0 and 1. Each element in the two-dimensional array is correspondent to a pixel in a raster; 1 indicates the pixel is a value pixel and 0 means the pixel is NoData.

In order to save space, the NoData mask is actually stored as a one-dimensional array of byte. Each byte is used to represent NoData value flags for 8 correspondent pixels.

If the image (or SafeArray) has an dimension of nxn, the length of the array returned from NoDataMask will be (n*n+7)/7



See Also

IPixelBlock3 Interface

.NET Samples

Create a custom NoData pixel filter