NAME

SVG::Rasterize::Cairo - rasterize output using Cairo

INHERITANCE

SVG::Rasterize::Cairo is a
  L<Class::Accessor|Class::Accessor>

VERSION

Version 0.001002

SYNOPSIS

DESCRIPTION

The interface of this class has to be considered unstable. Therefore it is also only very sparsely documented.

INTERFACE

Constructors

new

SVG::Rasterize::Cairo->new(%args)

Creates a new SVG::Rasterize::Cairo object and calls init(%args). If you subclass SVG::Rasterize::Cairo overload init, not new.

init

$cairo->init(%args)

If you overload init, your method should also call this one. It provides the following functions:

  • For each given argument (which has not been deleted by the previous actions) it calls the accessor with the same name to initialize the attribute. If such an accessor does not exist a warning is printed and the argument is ignored.

Public Attributes

These are the attributes which alternative rasterization engines have to implement.

width

height

Methods for Developers

These are the methods which alternative rasterization engines have to implement.

draw_line

draw_path

write

$engine->write(%args)

Writes the rendered image to a file.

Example:

$engine->write(type => 'png', file_name => 'foo.png');

type and file_name are the only supported parameters at the moment and the only supported type is "png".

DIAGNOSTICS

Exceptions

Warnings

BUGS AND LIMITATIONS

No bugs have been reported. Please report any bugs or feature requests to bug-svg-rasterize at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=SVG-Rasterize. I will be notified, and then you will automatically be notified of progress on your bug as I make changes.

AUTHOR

Lutz Gehlen, <perl at lutzgehlen.de>

LICENSE AND COPYRIGHT

Copyright 2010 Lutz Gehlen.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.