Applies in-place, ordered dithering using provided dither matrix (or matrix size) and desired number of dither levels, optionally specified individually (per channel). Each channel is be processed independently. Channels can be excluded from dithering by setting their target colors to zero or negative numbers.
remarks
A size of 1 will result in simple posterization of each channel. The numColors value(s) MUST be in the [0 .. numColorsInChannel] interval.
Applies in-place, ordered dithering using provided dither matrix (or matrix size) and desired number of dither levels, optionally specified individually (per channel). Each channel is be processed independently. Channels can be excluded from dithering by setting their target colors to zero or negative numbers.
A
size
of 1 will result in simple posterization of each channel. ThenumColors
value(s) MUST be in the[0 .. numColorsInChannel]
interval.Also see: defBayer, ditherPixels.