Crate svgr

Source
Expand description

svgr is an SVG rendering library.

Re-exports§

pub use tiny_skia;
pub use usvgr;

Structs§

Context
General context for the rendering.
PixmapPool
This is a mutable pixmap pool which allocates queues of size classes (powers of 2) containing previously allocated and used pixmaps. They are given to the consumer as a virtual pixmap of the requested size but are always allocated as a closest power of 2 sized memory block.
SvgrCache
Defines rendering LRU cache. Each individual node and group will be cached separately. Make sure that in most cases it will require saving of the whole canvas which may lead to significant memory usage. So it is recommended to set the cache size to a reasonable value.

Functions§

render
Renders a tree onto the pixmap.
render_node
Renders a node onto the pixmap.