enum Channel
Enumeration of pixel channels.
The following table lists all iemts of this enum type, including their string tags (if defined).
Intensity
Grayscale intensity (defaults to 0).
0
During scanline processing, this channel is 24-bits wide. Afterwards it is 16-bits wide.
Red
Red channel (defaults to 0).
Green
Green channel (defaults to 0).
Blue
Blue channel (defaults to 0).
Alpha
Alpha channel (defaults to 16777215).
16777215
Void
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.
The following table shows all usages of this config type.
class Tinman.Image.Function . channel
class Tinman.Image.IntensityFrom . channel
class Tinman.Image.IntensityTo . channel
class Tinman.Image.Invert . channel