Bilal Mujeeb
Bilal Mujeeb

Reputation: 76

Creating SVG image in c++

I want to create a SVG image programmatically using preferably c++ from some image points. Can anyone help me with that?

Upvotes: 4

Views: 15418

Answers (2)

Vertexwahn
Vertexwahn

Reputation: 8142

simple-svg is a header only svg lib easy to use: simple_svg_1.0.0

Here is an example how to use it: main_1.0.0.cpp

It is also hosted on GitHub.

Upvotes: 7

user360907
user360907

Reputation:

You could check out LibBoard. I have no experience with it myself, so I can't vouch for its usefulness, but it does appear to be what you're looking for. I'm not sure how complicated your target image is going to be, but the website states:

For now, LibBoard can handle primitives like lines, rectangles, triangles, polylines, circles, ellipses and text.

In future releases, bitmap insertion should be supported.

See the TODO file for a list of features that should be added in future releases.

So you'll have basic functionality from it, and you can probably mess around with the basic list of shapes to create some pretty complicated images.

Upvotes: 0

Related Questions