PixelFormat

Description

[Flags] [SemanticEnum]
enum Tinman.Terrain.Imaging.PixelFormat

Image pixel format flags.

The pixel format of an image is not relevant during processing, because a uniform scanline layout is used (see Scanline). Images and image readers carry a pixel format for hinting only.

Public / Constants

Unknown

public constant Unknown → (0:int32)

Unknown pixel format.

This value can be used as initial value to construct a valid pixel format.

Grayscale

public constant Grayscale → (1:int32)

Do pixels contain grayscale information (i.e. intensity channel)?

When this pixel format flag is set, each pixel contains grayscale information in an intensity channel.

The intensity channel is given in either linear or compressed sRGB color space (see SixteenBits).

The Grayscale and Truecolor flags are mutually exclusive.

Truecolor

public constant Truecolor → (2:int32)

Do pixels contain truecolor information (i.e. red, green and blue channels)?

When this pixel format flag is set, each pixel contains truecolor information in separate red, green and blue color channels.

The color channels are given in either linear or compressed sRGB color space (see SixteenBits).

The Grayscale and Truecolor flags are mutually exclusive.

Alpha

public constant Alpha → (4:int32)

Do pixels contain transparency information (i.e. alpha channel)?

When this pixel format flag is set, each pixel contains transparency information in an alpha channel.

SixteenBits

public constant SixteenBits → (8:int32)

Encode pixel channel values with at least 16 bits, instead of 8?

Precision

public constant Precision → (24:int32)

The number precision of raw pixel channel values is higher than 16-bit integers (e.g. floating-point values).

This flag implies SixteenBits.

See also

PixelRange

Default

public constant Default → (14:int32)

The default pixel format used for processing of image data.

All

public constant All → (31:int32)

All flags.