Cairo graphics tutorial

http://zetcode.com/gfx/cairo/

This is Cairo graphics tutorial. The tutorial will teach you the basics of graphics programming in Cairo with the C programming language. This tutorial is for beginners and intermediate developers.

Table of contents

Cairo

Cairo is a library for creating 2D vector graphics. It is written in the C programming language. There are bindings for other computer languages. Python, Perl, C++, C# or Java. Cairo is a multiplatform library. It works on Linux, BSDs, OSX.

Tweet

Related tutorials

PyCairo tutorial presents the Cairo library with the Python language. You may also look at theGTK+ tutorial.


Cairo: A Vector Graphics Library

for Cairo 1.16.0

Drawing

cairo_t — The cairo drawing context

Paths — Creating paths and manipulating path data

cairo_pattern_t — Sources for drawing

Regions — Representing a pixel-aligned area

Transformations — Manipulating the current transformation matrix

text — Rendering text and glyphs

Raster Sources — Supplying arbitrary image data

Tags and Links — Hyperlinks and document structure

Fonts

cairo_font_face_t — Base class for font faces

cairo_scaled_font_t — Font face at particular size and options

cairo_font_options_t — How a font should be rendered

FreeType Fonts — Font support for FreeType

Win32 Fonts — Font support for Microsoft Windows

Quartz (CGFont) Fonts — Font support via CGFont on OS X

User Fonts — Font support with font data provided by the user

Surfaces

cairo_device_t — interface to underlying rendering system

cairo_surface_t — Base class for surfaces

Image Surfaces — Rendering to memory buffers

PDF Surfaces — Rendering PDF documents

PNG Support — Reading and writing PNG images

PostScript Surfaces — Rendering PostScript documents

Recording Surfaces — Records all drawing operations

Win32 Surfaces — Microsoft Windows surface support

SVG Surfaces — Rendering SVG documents

Quartz Surfaces — Rendering to Quartz surfaces

XCB Surfaces — X Window System rendering using the XCB library

XLib Surfaces — X Window System rendering using XLib

XLib-XRender Backend — X Window System rendering using XLib and the X Render extension

Script Surfaces — Rendering to replayable scripts

Utilities

cairo_matrix_t — Generic matrix operations

Error handling — Decoding cairo's status

Version Information — Compile-time and run-time version checks.

Types — Generic data types

Index

Index of new symbols in 1.2

Index of new symbols in 1.4

Index of new symbols in 1.6

Index of new symbols in 1.8

Index of new symbols in 1.10

Index of new symbols in 1.12

Index of new symbols in 1.14

Index of new symbols in 1.16

A. Creating a language binding for cairo

General considerations

Memory management

Multiple return values

Overloading and optional arguments

Streams and File I/O

Error handling

Patterns

Surfaces

Fonts

cairo_path_t

 

 

 

 

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值