Interface IPixelBlock

Namespace
ESRI.ArcGIS.Geodatabase
Assembly
ESRI.Server.Geodatabase.dll

Provides access to members that control a PixelBlock.

[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("169BAFE0-40F6-11D2-9CFA-00A0249480F0")]
public interface IPixelBlock

Remarks

The Height and Width properties return the number of rows and columns in the PixelBlock.

The Planes argument returns the number of bands in the PixelBlock.

The PixelType property specifies the data type and bit depth of the pixels in the specified band.The SafeArray property specifies the variant SafeArray for the specified band. At ArcGIS 9.0 and later, this property returns SafeArray by value, not by reference like it does in ArcGIS 8.x. Your application, if only reads pixel values from SafeArray, will not be affected by this change. However, if your application involves modifying and writing pixel block to the band, you might experience a different behavior. The recommended fix is to use IPixelBlock3::PixelDataByRef method.

The GetVal method returns an individual value for the pixel specified by the band and pixel location input.

Properties

BytesPerPixel

The number of bytes per pixel for the PixelBlock.

int BytesPerPixel { get; }

Property Value

int

Height

The height of the PixelBlock in pixels.

int Height { get; }

Property Value

int

PixelType[int]

The pixel type of the PixelBlock.

rstPixelType PixelType[int plane] { get; set; }

Parameters

plane int

Property Value

rstPixelType

Planes

The number of pixel arrays contained in the PixelBlock.

int Planes { get; }

Property Value

int

SafeArray[int]

A variant SafeArray of pixels for a specified plane.

object SafeArray[int plane] { get; set; }

Parameters

plane int

Property Value

object

Width

The width of the PixelBlock in pixels.

int Width { get; }

Property Value

int

Methods

GetVal(int, int, int)

The value for a specified pixel.

object GetVal(int plane, int X, int Y)

Parameters

plane int
X int
Y int

Returns

object