| Image-TextMode documentation | view source | Contained in the Image-TextMode distribution. |
Image::TextMode::Renderer::GD - A GD-based renderer for text mode images
use Image::TextMode::Format::ANSI;
use Image::TextMode::Renderer::GD;
my $ansi = Image::TextMode::Format::ANSI->new;
$ansi->read( $file );
my $renderer = Image::TextMode::Renderer::GD->new;
# render fullscale version
print $renderer->fullscale( $ansi );
# render thumnail version
print $renderer->thumbnail( $ansi );
This module allows you to render your text mode image though the GD graphics library.
Creates a new instance.
Renders a thumbnail-sized version of the image. This is mostly a pass-through to
fullscale() with the resulting image being scaled down to 1 pixel width per
1 character column. Options specific to this method are:
See fullscale for all of the other available options.
Renders a pixel-by-pixel representation of the text mode image. You may use the following options to change the output:
Brian Cassidy <bricas@cpan.org>
Copyright 2008-2011 by Brian Cassidy
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| Image-TextMode documentation | view source | Contained in the Image-TextMode distribution. |