How do you use a vector file with the Graphics class?
I would have thought there would be a function something like
Graphics g;
g.drawVectorFile(xml, x, y, width, height, opacity);
something like that.
Edit: Oh jeez I think I already have the answer and asked it in the past in a different way: How do I edit JUCE demo to draw a specific svg file?
Edit: It’s not immediately obvious how to change the height and width of the original. Maybe a tip on doing that is in order?
Edit: Wait I think I got it. use drawWithin() instead of draw()
drawable->drawWithin(g, juce::Rectangle<float>(x, y, width, height), RectanglePlacement::Flags::centred, 1.0);