Class PixelBlockClass

Namespace
ESRI.ArcGIS.DatasourcesRaster
Assembly
ESRI.Server.DatasourcesRaster.dll
[Guid("AB1B6868-B08C-443A-B7EF-F6B2FDEC434C")]
[ClassInterface(ClassInterfaceType.None)]
public class PixelBlockClass : PixelBlock, IPixelBlock, IPixelBlock2, IPixelBlock3, IPixelBlock4, IPersistStream, IPersist
Inheritance
PixelBlockClass
Implements
Inherited Members

Constructors

PixelBlockClass()

public PixelBlockClass()

Explicit Interface Implementations

BytesPerPixel

The number of bytes per pixel for the PixelBlock.

virtual int BytesPerPixel { get; }

Returns

int

Clear()

Clears the pixel block.

virtual void Clear()

Clear(int)

Clears a given plane (sets to NoData).

virtual void Clear(int plane)

Parameters

plane int

Create(int, int, int, rstPixelType)

Initializes the pixel block.

virtual void Create(int Planes, int nCols, int nRows, rstPixelType PixelType)

Parameters

Planes int
nCols int
nRows int
PixelType rstPixelType

CreateFromPixelBlock(IPixelBlock, object)

Initializes the pixel block using another pixel block.

virtual void CreateFromPixelBlock(IPixelBlock pBlock, object NoData)

Parameters

pBlock IPixelBlock
NoData object

ExportToBytes()

Exports to a byte array.

virtual byte[] ExportToBytes()

Returns

byte[]

GetClassID(out Guid)

virtual void GetClassID(out Guid pClassID)

Parameters

pClassID Guid

GetNoDataMaskVal(int, int, int)

Gets the NoData mask value for a specified pixel.

virtual object GetNoDataMaskVal(int plane, int x, int y)

Parameters

plane int
x int
y int

Returns

object

GetSizeMax(out _ULARGE_INTEGER)

virtual void GetSizeMax(out _ULARGE_INTEGER pcbSize)

Parameters

pcbSize _ULARGE_INTEGER

GetVal(int, int, int)

The value for a specified pixel.

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

Parameters

plane int
X int
Y int

Returns

object

HasData()

Checks if a PixelBlock contains any data pixels.

virtual bool HasData()

Returns

bool

HasNoData()

Checks if a PixelBlock contains NoData.

virtual bool HasNoData()

Returns

bool

HasNoData(int)

Checks if this PixelBlock contains NoData.

virtual bool HasNoData(int plane)

Parameters

plane int

Returns

bool

Height

The height of the PixelBlock in pixels.

virtual int Height { get; }

Returns

int

IPersistStream_GetClassID(out Guid)

virtual void IPersistStream_GetClassID(out Guid pClassID)

Parameters

pClassID Guid

IPixelBlock2_BytesPerPixel

The number of bytes per pixel for the PixelBlock.

virtual int IPixelBlock2_BytesPerPixel { get; }

Returns

int

IPixelBlock2_GetVal(int, int, int)

The value for a specified pixel.

virtual object IPixelBlock2_GetVal(int plane, int x, int y)

Parameters

plane int
x int
y int

Returns

object

IPixelBlock2_Height

The height of the PixelBlock in pixels.

virtual int IPixelBlock2_Height { get; }

Returns

int

IPixelBlock2_PixelType[int]

The pixel type of the PixelBlock.

virtual rstPixelType IPixelBlock2_PixelType[int plane] { get; set; }

Parameters

plane int

Returns

rstPixelType

IPixelBlock2_Planes

The number of pixel arrays contained in the PixelBlock.

virtual int IPixelBlock2_Planes { get; }

Returns

int

IPixelBlock2_Width

The width of the PixelBlock in pixels.

virtual int IPixelBlock2_Width { get; }

Returns

int

IPixelBlock3_BytesPerPixel

The number of bytes per pixel for the PixelBlock.

virtual int IPixelBlock3_BytesPerPixel { get; }

Returns

int

IPixelBlock3_GetVal(int, int, int)

The value for a specified pixel.

virtual object IPixelBlock3_GetVal(int plane, int x, int y)

Parameters

plane int
x int
y int

Returns

object

IPixelBlock3_Height

The height of the PixelBlock in pixels.

virtual int IPixelBlock3_Height { get; }

Returns

int

IPixelBlock3_PixelType[int]

The pixel type of the PixelBlock.

virtual rstPixelType IPixelBlock3_PixelType[int plane] { get; set; }

Parameters

plane int

Returns

rstPixelType

IPixelBlock3_Planes

The number of pixel arrays contained in the PixelBlock.

virtual int IPixelBlock3_Planes { get; }

Returns

int

Remarks

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

IPixelBlock3_Width

The width of the PixelBlock in pixels.

virtual int IPixelBlock3_Width { get; }

Returns

int

IsDirty()

virtual void IsDirty()

Load(IStream)

virtual void Load(IStream pstm)

Parameters

pstm IStream

Mask(object)

Generates NoData Mask using a given NoData value.

virtual void Mask(object NoData)

Parameters

NoData object

NoDataMask[int]

The NoData mask for a specified plane.

virtual object NoDataMask[int plane] { get; set; }

Parameters

plane int

Returns

object

NoDataMaskByRef[int]

The NoData mask for a specified plane.

virtual object NoDataMaskByRef[int plane] { get; }

Parameters

plane int

Returns

object

Remarks

The NoDataMaskByRef property returns a one-dimensional array of NoData mask by reference.

PixelData[int]

An array of pixels for a specified plane.

virtual object PixelData[int plane] { get; set; }

Parameters

plane int

Returns

object

Remarks

The PixelData property specifies the pixel values of the specified raster band.

PixelDataByRef[int]

A pointer to an array of pixels for a specified plane.

virtual object PixelDataByRef[int plane] { get; }

Parameters

plane int

Returns

object

PixelType[int]

The pixel type of the PixelBlock.

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

Parameters

plane int

Returns

rstPixelType

Planes

The number of pixel arrays contained in the PixelBlock.

virtual int Planes { get; }

Returns

int

SafeArray[int]

A variant SafeArray of pixels for a specified plane.

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

Parameters

plane int

Returns

object

SafeArrayByRef[int]

A variant SafeArray of pixels for a specified plane.

virtual object SafeArrayByRef[int plane] { get; }

Parameters

plane int

Returns

object

Save(IStream, int)

virtual void Save(IStream pstm, int fClearDirty)

Parameters

pstm IStream
fClearDirty int

Width

The width of the PixelBlock in pixels.

virtual int Width { get; }

Returns

int