Can libsvg draw to a a maxgui canvas
BlitzMax Forums/Brucey's Modules/Can libsvg draw to a a maxgui canvas
| ||
Been trying draw an svg image to maxgui canvas but having no luck, can it be done ? I have cairo, libsvg and libxml mods installed If so would anyone have a small example. Thanks okee |
| ||
It's a little advanced. You need to also use Cairo, and create a pixmap Cairo surface. You can use the pixmap to draw to a maxgui canvas. Once you create a Cairo surface, you need to mysvg = TSVGCairo.Create(surface), then mysvg.ParseSVG(file), then mysvg.RenderSVG() This is what i read from the code itself, so I have not tested it or have any examples. |