|
rigSvg 0.1.0
RigKit pack API - rigSvg
|
#include <cstdint>#include <string>#include <vector>Functions | |
| bool | rigkit::svg::rasterizeFileThumbnail (const std::string &pathUtf8, int maxEdge, int &w, int &h, std::vector< std::uint8_t > &rgba) |
| CPU raster of an SVG for file-browser Icons. | |
| bool rigkit::svg::rasterizeFileThumbnail | ( | const std::string & | pathUtf8, |
| int | maxEdge, | ||
| int & | w, | ||
| int & | h, | ||
| std::vector< std::uint8_t > & | rgba ) |
CPU raster of an SVG for file-browser Icons.
Loads through SvgLoader, then paints PathFlatten contours and TextItem glyphs into an RGBA tile. Long edge is capped at maxEdge. Uses Blend2D only when that target is already linked; otherwise a coverage fill. No GL context and no UI pack.