1. Introduction

This is a Cairo graphics tutorial.

It is done in C programming language.

2D Vector Graphics

There are two different computer graphics:

1. Vector
2. Raster

The advantages of vector graphics over raster are:

1. smaller size
2. aility to zoom indefinitely
3. moving, scaling, filling or rotating does not degrade the quality of an image

Cairo

Cairo is a library for creating 2D vector graphics. It is written in the C programming language.

The Cairo library is part of the GTK+ system.

Compiling examples

gcc -o example example.c `pkg-config --cflags --libs gtk+-2.0`

Table Of Contents

Previous topic

The Cairo graphics tutorial

Next topic

2. Cairo definitions