NAME
Cairo - Perl interface to the cairo library
SYNOPSIS
use Cairo;
my $surface = Cairo::ImageSurface->create ('argb32', 100, 100);
my $cr = Cairo::Context->create ($surface);
$cr->rectangle (10, 10, 40, 40);
$cr->set_source_rgb (0, 0, 0);
$cr->fill;
$cr->rectangle (50, 50, 40, 40);
$cr->set_source_rgb (1, 1, 1);
$cr->fill;
$cr->show_page;
$surface->write_to_png ("output.png");
ABSTRACT
Cairo provides Perl bindings for the vector graphics library cairo. It supports multiple output targets, including the X Window Systems, PDF, and PNG. Cairo produces identical output on all those targets and makes use of hardware acceleration wherever possible.
API DOCUMENTATION
Cairo::Context
- Cairo::Context->create
-
Creates a new Cairo::Context. In the following, $cr will designate a Cairo::Context.
- $cr->save
- ...
Cairo::Font
...
SEE ALSO
- http://cairographics.org/documentation
-
Lists many available resources including tutorials and examples
- http://cairographics.org/manual/
-
Contains the reference manual
AUTHORS
COPYRIGHT
Copyright (C) 2005 by the cairo perl team