PixelFormat
Description
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
Unknown pixel format.
This value can be used as initial value to construct a valid pixel format.
Grayscale
Do pixels contain grayscale information (i.e. intensity channel)?
When this pixel format flag is set, each pixel contains information that can be interpreted as grayscale intensity (for example, a single intensity channel or color channels that can be used to compute a weighted intensity).
The intensity channel is given in either linear or compressed sRGB color space (see SixteenBits).
- See also
Truecolor
Do pixels contain truecolor information (i.e. red, green and blue channels)?
When this pixel format flag is set, each pixel contains information that can be interpreted as separate red, green and blue color channels.
The color channels are given in either linear or compressed sRGB color space (see SixteenBits).
This flag mask contains Grayscale.
Alpha
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.
Precision
The number precision of raw pixel channel values is higher than 16-bit integers (e.g. floating-point values).
This flag mask contains SixteenBits.
- See also