BitmapFormat Class#

Definition#

Namespace: P1.ImageSdk

Define format of the bitmap memory. See BitmapFormatTypeCode for predefined bitmap format. More…

public class BitmapFormat

Remarks#

Define format of the bitmap memory. See BitmapFormatTypeCode for predefined bitmap format.

Constructors#

BitmapFormat()

Create a BitmapFormat with Unknown format code

BitmapFormat(BitDepth bitDepth, PixelLayout pixelLayout, params PixelComponent[] pixelComponents)

Create a bitmap format with customized info.

BitmapFormat(int code)

Create BitmapFormat from BitmapFormatTypeCode

Properties#

BitmapFormatType

Return predefined format code.

BitDepth

Data type of each pixel component.

PixelLayout

Memory layout of the data buffer

PixelComponent

Content of each channel in a pixel.

Methods#

GetBitsPerSample()

Number of bit per channel per pixel. See BitDepth.

SetAlignment(bool align)

Set memory buffer alignment (only take effect with 12-bit BitDepth).

Equals(object obj)

operator BitmapFormat(int code)

Implicit cast from BitmapFormatTypeCode

operator==(BitmapFormat lhs, BitmapFormat rhs)

Check if two BitmapFormat are identical

operator!=(BitmapFormat lhs, BitmapFormat rhs)

Check if two BitmapFormat are different

operator int(BitmapFormat d)

Implicit cast bitmapFormat code to int