module

Egui::Backend::NanoSvg

Constants

DPI = 96.0_f32

Class methods

rasterize(source : String, tint : Color32, w : Int32, h : Int32) : Bytes | Nil

Rasterize source into a w×h straight-alpha RGBA8 bitmap, or nil when NanoSVG cannot parse it (shim returns NULL — see backend/nanosvg_shim.c for the no-shapes rule). tint resolves currentColor occurrences before parsing; the input is copied because nsvgParse edits its buffer in place.

Source