zplCore.comzplCore.com

ColorMatrix

public sealed class ColorMatrix

A colour module matrix. ColorMatrix.Cells is indexed [x, y] and holds BWIPP colour indices: 0 = white (FFFFFF), 9 = black (000000), 1 = cyan (00FFFF), 3 = magenta (FF00FF), 5 = yellow (FFFF00), 6 = green (00FF00).

Constructors

SignatureDescription
# ColorMatrix(int width, int height)Creates an empty matrix.

Properties

PropertyTypeDescription
Cells { get; }int[]Colour indices, [x, y].
Height { get; }intHeight in modules.
Width { get; }intWidth in modules.

Fields & Constants

FieldTypeDescription
static readonly PaletteIReadOnlyDictionary<int, (string, string)>Colour index to (name, RGB hex) as defined by BWIPP's ultracode colormap.