zu www.bildungsgueter.de next page Table of Section Contents

Use of Cairo

Overview


Cairo draws into a virtual plane. To identify points on that plane, we use a coordinate system that associates every point of the plane with an unique pair of numbers.

Along the x-axis, the values increase from left to right, along the y-axis, the values increase from the top downwards.

The following drawing shows the default coordinate system used by Cairo:

The default coordinate system of Cairo

Cairo uses a drawing tool, called context, to draw on a surface. The most commonly used surface is the interior of a DrawingArea. It is however also possible to draw into a bitmap.

The context offers a lot of facilities to

...


Table of Section Contents next page