NAME

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

INHERITANCE

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

VERSION

Version 0.000007

SYNOPSIS

DESCRIPTION

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

INTERFACE

Constructors

new

Usage   : SVG::Rasterize::Cairo->new(%args)
Function: creates a new SVG::Rasterize::Cairo object
Returns : a SVG::Rasterize::Cairo object
Args    : initial attribute values as named parameters

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

init

Usage   : only called by new
Function: initializes attributes
Returns : nothing
Args    : initial attribute values as named parameters

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

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.