@mbtech-nl/bitmap / MultiPlaneRenderOptions
Interface: MultiPlaneRenderOptions
Defined in: types.ts:131
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
colorSpace? | public | "rgb" | "lab" | Distance metric used to classify each source pixel to a palette entry. - 'rgb' (default): Euclidean distance in 0..255 RGB. Fast and predictable. - 'lab': CIELAB ΔE76 with D65 white. Perceptually correct; small per-pixel overhead. Use when palette colours are perceptually close. Default 'rgb' | types.ts:142 |
defaults? | public | PlaneRenderOptions | Defaults applied to every plane unless an entry exists in planes. | types.ts:145 |
palette | readonly | readonly PaletteEntry[] | Printer's palette. Length ≥ 1, names unique, name !== 'white'. | types.ts:133 |
planes? | public | Readonly<Record<string, PlaneRenderOptions>> | Per-plane overrides keyed by palette entry name. | types.ts:148 |
rotate? | public | 0 | 90 | 180 | 270 | Rotation applied to every plane after threshold/dither, exactly as in renderImage. All planes rotate together — independent rotation makes no physical sense for a multi-colour print. Default 0 | types.ts:156 |