Hi
I'm trying to figure out the best way to scale SVG images. For example, I'm loading the individual SVG files into DrawableComposite objects, like:
ScopedPointer<XmlElement> svg(XmlDocument::parse(BinaryData::Module_background_svg)); background = dynamic_cast<DrawableComposite*>(Drawable::createFromSVG(*svg));
Then I'm drawing them in the paint() method with this:
background->drawWithin(g, Rectangle<float>(0, 0, width, height), RectanglePlacement::stretchToFit, 1.0);
But what I want to be able to do is change the size of the SVG without the graphic appearing to be stretched. To me it looks like the SVG is rendered as an image then drawn. How do I draw them as actual vectors or paths?
thanks
peter