Gin
Loading...
Searching...
No Matches
Enumerations | Functions
SVG Namespace Reference

Enumerations

enum class  Engine { nanosvg , juce }
 

Functions

juce::Image renderToImage (const juce::String &svgText, int width, int height, Engine engine=Engine::juce)
 
juce::Image renderToImage (const juce::String &svgText, int width, int height, juce::Colour backgroundColour, Engine engine=Engine::juce)
 
juce::Path renderToPath (const juce::String &svgText)
 
juce::Path renderToPath (const juce::String &svgText, juce::Rectangle< float > targetBounds, juce::RectanglePlacement placement=juce::RectanglePlacement::centred)
 
void render (const juce::String &svgText, juce::Graphics &g, juce::Rectangle< float > targetBounds, Engine engine=Engine::juce)
 

Enumeration Type Documentation

◆ Engine

Enumerator
nanosvg 
juce 

Function Documentation

◆ renderToImage() [1/2]

juce::Image SVG::renderToImage ( const juce::String &  svgText,
int  width,
int  height,
Engine  engine = Engine::juce 
)

◆ renderToImage() [2/2]

juce::Image SVG::renderToImage ( const juce::String &  svgText,
int  width,
int  height,
juce::Colour  backgroundColour,
Engine  engine = Engine::juce 
)

◆ renderToPath() [1/2]

juce::Path SVG::renderToPath ( const juce::String &  svgText)

◆ renderToPath() [2/2]

juce::Path SVG::renderToPath ( const juce::String &  svgText,
juce::Rectangle< float targetBounds,
juce::RectanglePlacement  placement = juce::RectanglePlacement::centred 
)

◆ render()

void SVG::render ( const juce::String &  svgText,
juce::Graphics &  g,
juce::Rectangle< float targetBounds,
Engine  engine = Engine::juce 
)