File: cairo.page

package info (click to toggle)
gnome-devel-docs 3.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 28,808 kB
  • sloc: xml: 101,979; sh: 625; makefile: 380; ansic: 340; cpp: 131; python: 80
file content (39 lines) | stat: -rw-r--r-- 1,815 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?xml version="1.0" encoding="utf-8"?>
<page xmlns="http://projectmallard.org/1.0/" type="topic" id="cairo" xml:lang="sv">
<info>
  <link type="guide" xref="index" group="cairo"/>
  <desc>Modern 2D vector drawing canvas</desc>
  <revision pkgversion="3.0" date="2011-04-05" status="candidate"/>
</info>

<title>Cairo</title>

<p>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, allowing you to
write platform-independent code to draw graphics on different media.</p>

<p>The Cairo drawing model is similar to those provided by PostScript
and PDF.  The Cairo API provides such drawing operations as stroking and
filling cubic Bézier splines, compositing images, and performing affine
transformations.  These vector operations allow for rich, anti-aliased
graphics without using expensive pixel-based drawing in your application
code.</p>

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

<p>You should use Cairo whenever you need to draw graphics in your
application beyond the widgets provided by GTK+.  Much 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.</p>

<list style="compact">
  <item><p><link href="http://www.cairographics.org/manual/">Cairo Manual</link></p></item>
  <item><p><link href="http://www.cairographics.org">The Cairo web site</link></p></item>
</list>
</page>