Expand description
Deterministic image rendering. The canvas is feed columns by 32 head rows.
Active rows are a design choice, not a physical printhead calibration. Images keep their aspect ratio (rounded down to whole pixels, with a one-pixel minimum), including any existing white margins, and are centered on the full canvas. An odd spare pixel goes on the right or bottom. Scaling uses nearest neighbors sampled at pixel centers. No text, font, or PDF rendering is done.
Structs§
Enums§
Constants§
Functions§
- preview_
png - Encode the actual full-height raster, without rescaling or trimming.
- render_
gray - Render row-major 8-bit grayscale: zero is black and 255 is white.
- render_
png - Decode only PNG. Header dimensions are checked before decoder construction;
Limitsbounds its buffers and decoded storage is checked before allocation. Alpha is composited on white before integer Rec. 709 luminance conversion. For APNG, only the default PNG image is rendered, not animation frames.