Closed zbaylin closed 3 years ago
This uses Skia's SVGDOM API to render SVGs onto Skia canvas's, which is exactly what we need for SVG rendering!
The basic process to get it working is:
SkStream
SkMemoryStream
SkFileStream
The results are surprisingly good, considering the SVG API is marked as "experimental" in Skia:
This uses Skia's SVGDOM API to render SVGs onto Skia canvas's, which is exactly what we need for SVG rendering!
The basic process to get it working is:
SkStream
of some sort from the SVG you want to renderSkMemoryStream
from an SVG string in memory, or anSkFileStream
from an SVG fileThe results are surprisingly good, considering the SVG API is marked as "experimental" in Skia: