Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is a good multiplatform vector graphics library for C/C++?

I'm looking for a good multiplatform library for vector graphics in C/C++. Any recommendation or thougts?

Thanks

EDIT: Thanks for all your answers!! Could anyone tell me the pros and cons of qt vs cairo, for example? Cairo got more votes, but it seems to be from 5 to 7 times slower according to some benchmarks...

like image 451
alvatar Avatar asked Apr 06 '09 19:04

alvatar


5 Answers

You can try out Cairo - it's opensource, not too heavy and has a flexible license.

like image 185
Saulius Žemaitaitis Avatar answered Oct 17 '22 20:10

Saulius Žemaitaitis


I like Nokia's QT. Not only vector graphics but also high level widgets.

like image 42
Pablo Santa Cruz Avatar answered Oct 17 '22 22:10

Pablo Santa Cruz


There is Anti-Grain Geometry.

like image 9
Joey Avatar answered Oct 17 '22 21:10

Joey


How about ImageMagick, or OpenCV (Computer vision) though! They are both good for basic graphics, and OpenCV can do magic when it comes to Computer Vision.

like image 2
Alphaneo Avatar answered Oct 17 '22 21:10

Alphaneo


If you want to display DXF/DWG and the like, use CadImage.DLL from www.CadSoftTools.com. Its commercial, Windows only, written in Delphi (has a C-Inteface). We tried several Libs with huge (>100MB) DXF-Files. This is the only one that didn't break down and its the fastest one. Godd support as well. Company in Russia.

like image 1
RED SOFT ADAIR Avatar answered Oct 17 '22 21:10

RED SOFT ADAIR