PixelChannel

Description

enum Tinman.Terrain.Imaging.PixelChannel

Enumeration of pixel channels.

Public / Constants

Intensity

public constant Intensity → (0:int32)

Grayscale intensity (defaults to 0).

During scanline processing (see Scanline), this channel is 24-bits wide. Afterwards it is 16-bits wide.

Red

public constant Red → (1:int32)

Red channel (defaults to 0).

During scanline processing (see Scanline), this channel is 24-bits wide. Afterwards it is 16-bits wide.

Green

public constant Green → (2:int32)

Green channel (defaults to 0).

During scanline processing (see Scanline), this channel is 24-bits wide. Afterwards it is 16-bits wide.

Blue

public constant Blue → (3:int32)

Blue channel (defaults to 0).

During scanline processing (see Scanline), this channel is 24-bits wide. Afterwards it is 16-bits wide.

Alpha

public constant Alpha → (4:int32)

Alpha channel (defaults to 16777215).

During scanline processing (see Scanline), this channel is 24-bits wide. Afterwards it is 16-bits wide.

Void

public constant Void → (5:int32)

Void mask channel (defaults to 16777215).

The void mask channel only has one bit per pixel, which is computed from pixel channel values using this formula:

void := (value + 8388607) / 16777215

Pixel channel values in the range [0..8388607] are thus mapped to void pixels, and values within [8388608..16777215] are mapped to existent pixels.