Render a vector graphic (.svg) in C++

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-30 03:58:52
Vijay Mathew

The wxsvg library allows loading and manipulating SVG files. Qt also has an SVG module.

I'm coming a little late to the conversation, but I would suggest you to look at Nano SVG, an extremely lightweight svg renderer that doesn't need cairo/libsvg. I got nanosvg compiled and working in a couple of hours. It's very basic, but it gets the job done.

SVG++ library provides advanced support for SVG reading, so that rendering SVG with allegro can be implemented in reasonable time.

I have recently put together an SVG renderer library in C++: https://github.com/igagis/svgren

It uses Cairo for rendering to off-screen surface. Supports gradients and all kind of shapes.

Personally, I using NanoSVG in my Simple Viewer GL. It's allowing me easy to load and rasterize SVG images in few lines of code. But this library has weak SVG support.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!