|
Gin
|
Functions | |
| juce::Image | rasterizeSVG (juce::String svgText, int w, int h) |
| Converts SVG text to a rasterized JUCE Image. | |
| juce::Path | parseSVGPath (const juce::String &txt) |
| Parses an SVG path string into a JUCE Path. | |
Converts SVG text to a rasterized JUCE Image.
This function parses SVG markup and renders it to a bitmap image at the specified dimensions. The SVG will be scaled to fit the given width and height.
| svgText | SVG markup as a string |
| w | Width of the output image in pixels |
| h | Height of the output image in pixels |
| juce::Path parseSVGPath | ( | const juce::String & | txt | ) |
Parses an SVG path string into a JUCE Path.
Similar to juce::Drawable::parseSVGPath(), but with extended support for parsing lists of points. This allows you to create paths from SVG path data strings.
Example SVG path syntax: "M 10,10 L 100,100 L 100,10 Z"
| txt | SVG path data string |