- LICENSE AND COPYRIGHT
SVG::Rasterize::Engine::PangoCairo - rasterize output using Cairo
# explicit construction (unusual) use SVG::Rasterize::Engine::PangoCairo; my $engine = SVG::Rasterize::Engine::PangoCairo->new (width => 640, height => 480);
This class is only instantiated by the rasterize method of
This documentation focues on this specific implementation. For a more general description of the engine interface see SVG::Rasterize::Engine.
Creates a new
SVG::Rasterize::Engine::PangoCairo object and calls
init(%args). If you subclass
Other backends are also required to validate their init parameters because the engine_args hash given by the user to
SVG::Rasterize is handed over to the
new constructor of the engine class without validation.
Writes the rendered image to a file.
$engine->write(type => 'png', file_name => 'foo.png');
file_name are the only supported parameters at the moment and the only supported type is "png". If
file_name has a false value, no output is written and a warning is issued. Besides that,
file_name is not validated at all. Make sure that you provide a sane value (whatever that means to you).
These methods are just documented for myself. You can read on to satisfy your voyeuristic desires, but be aware of that they might change or vanish without notice in a future version.
This piece of documentation is mainly here to make the
PODcoverage test happy.
make_ro_accessorto make the readonly accessors throw an exception object (of class
SVG::Rasterize::Exception::Attribute) instead of just croaking.
<perl at lutzgehlen.de>
Copyright 2010-2011 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.