Expand description
CPU PNG reference renderer for Zenith.
Owns the raster backend adapter trait (tiny-skia is the first engine), deterministic PNG production from a scene display list, SVG and raster image decode, glyph rasterization, and enforcement of all raster-time determinism rules. Backend types never appear in the public API.
Structs§
- PdfOptions
- Options controlling PDF emission.
- Raster
Image - A rasterized image in straight-alpha RGBA8 format (row-major).
- Render
Error - An error produced by the rasterization or encoding pipeline.
- Tiny
Skia Backend - CPU rasterization backend backed by the
tiny-skialibrary.
Traits§
- Raster
Backend - Trait that abstracts over different CPU rasterization backends.
Functions§
- composite_
spread - Composite two rasterized pages SIDE BY SIDE into one image with an optional transparent gutter between them.
- render_
image - Rasterize
sceneto aRasterImage(straight-alpha RGBA8 pixels). - render_
pdf - Render
sceneto a deterministic vector PDF (a single page). - render_
pdf_ multi - Render
scenes(one per document page, in order) to a single deterministic multi-page vector PDF, sharing one sequential object-id space. - render_
pdf_ multi_ with - Like
render_pdf_multibut with explicitPdfOptions. - render_
pdf_ with - Like
render_pdfbut with explicitPdfOptions(e.g. font subsetting). - render_
png - Rasterize
sceneand encode the result as PNG bytes. - render_
spread_ png - Rasterize two scenes (
left,right), composite them SIDE BY SIDE viacomposite_spread, and encode the result as deterministic PNG bytes.