14

I am looking for a library written either in C or C++ which can convert the svg to image formats.

I came across inkscape which converts svg to images. but to use this I must run inkscape as a process and this not the solution I am after.

I need the library to run on both Windows and Linux as well.

I am after a C or C++ library. If it was with Java I would have used Apache's Batik rasterizer.

Ashwin
  • 1,942
  • 4
  • 30
  • 59

3 Answers3

10

The canonical library to render SVG is librsvg. You may want to check that out.

Michael Kelley
  • 3,579
  • 4
  • 37
  • 41
cyco130
  • 4,654
  • 25
  • 34
6

For image libray, you can use ImageMagick, which is quite popular and it support many types of image.

dip
  • 530
  • 3
  • 7
-1

I would recommend leadtools, as they support many vector formats and many programming languages and it can be easily convert vector format to the most known raster format.

As far as I know they support Windows, not sure about Linux.

You can tell by visiting their website.

OnaBai
  • 40,767
  • 6
  • 96
  • 125
Taj Deen
  • 7
  • 1