Skip to main content

Module rasterize

Module rasterize 

Source

Structs§

RasterizeOptions
Options for SVG rasterization.

Enums§

VectorError
Errors from SVG parsing and rasterization.

Constants§

DEFAULT_DPI
Default DPI — matches SVG spec’s 1:1 mapping (96 CSS px per inch).
MAX_DPI
Maximum allowed DPI for rasterization.
MIN_DPI
Minimum allowed DPI for rasterization.

Functions§

rasterize_svg
Rasterize SVG bytes to a pixel buffer.