rigSvg 0.1.0
RigKit pack API - rigSvg
Loading...
Searching...
No Matches
SvgThumbnail.h File Reference
#include <cstdint>
#include <string>
#include <vector>
Include dependency graph for SvgThumbnail.h:

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.

Function Documentation

◆ rasterizeFileThumbnail()

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.