Shaun McCance
shaunm@gnome.org 2011–2012
2D, vector-based drawing for high-quality graphics
Fran Diéguez
frandieguez@gnome.org 2009-2020.
Leandro Regueiro
leandro.regueiro@gmail.com 2011.

# Cairo

Cairo is a 2D graphics library featuring a sophisticated API for drawing vector graphics, compositing images, and rendering anti-aliased text. Cairo provides support for multiple output devices, including the X Window System, Microsoft Windows, and image buffers in memory, allowing you to write platform-independent code to draw graphics on different media.

O modelo de debuxado de Cairo é similar ao que fornece PostScript e PDF. O API de Cairo fornece operacións de debuxado tales como pincelar e rechear splines cúbicos de Bézier, compo;er imaxes e realizar transformacións afíns. Estas operacións con vectores permiten gráficos ricos con antialias sen ter que usar o caro debuxo baseado en píxeles no código da súa aplicación.

Cairo's rich drawing model allows for high-quality rendering to multiple media. The same API can be used to create on-screen graphics and text, to render images, or create crisp output suitable for printing.

You should use Cairo whenever you need to draw graphics in your application beyond the widgets provided by GTK. Almost all of the drawing inside GTK is done using Cairo. Using Cairo for your custom drawing will allow your application to have high-quality, anti-aliased, and resolution-independent graphics.

Manual de Cairo

Sitio web de Cairo