Image-Caa
view release on metacpan or search on metacpan
DEPENDENCIES
This module requires these other modules and libraries:
Test::More
Curses;
To get the most out of this module you might want:
Image::Magick
COPYRIGHT AND LICENCE
Copyright (C) 2006 Cal Henderson <cal@iamcal.com>
License: Perl Artistic License
demos/curses.pl view on Meta::CPAN
#!/usr/bin/perl -w
use strict;
use lib '../lib';
use Curses;
use Term::ReadKey;
use Image::Caa;
use Image::Magick;
#
# load the image
#
my $image = Image::Magick->new;
my $x = $image->Read('kitten.jpg');
warn "$x" if "$x";
#
# set up window
#
demos/kitten.pl view on Meta::CPAN
#!/usr/bin/perl -w
use lib '../lib';
use strict;
use Image::Caa;
use Image::Magick;
use Term::ReadKey;
#
# load the image
#
my $image = Image::Magick->new;
my $x = $image->Read('kitten.jpg');
warn "$x" if "$x";
#
# get screen size
#
demos/portrait.pl view on Meta::CPAN
#!/usr/bin/perl -w
use lib '../lib';
use strict;
use Image::Caa;
use Image::Magick;
use Term::ReadKey;
#
# load the image
#
my $image = Image::Magick->new;
my $x = $image->Read('portrait.jpg');
warn "$x" if "$x";
#
# get screen size
#
demos/sunset.pl view on Meta::CPAN
#!/usr/bin/perl -w
use lib '../lib';
use strict;
use Image::Caa;
use Image::Magick;
use Term::ReadKey;
#
# load the image
#
my $image = Image::Magick->new;
my $x = $image->Read('sunset.jpg');
warn "$x" if "$x";
#
# get screen size
#
lib/Image/Caa.pm view on Meta::CPAN
__END__
=head1 NAME
Image::Caa - Colored ASCII Art
=head1 SYNOPSIS
use Image::Caa;
use Image::Magick;
# load an image
my $image = Image::Magick->new;
$image->Read('sunset.jpg');
# display it as ASCII Art
my $caa = new Image::Caa();
$caa->draw_bitmap(0, 0, 40, 20, $image);
# some fancy options
my $caa = new Image::Caa(
driver => 'DriverANSI',
dither => 'DitherOrdered8',
black_bg => 1,
);
$caa->draw_bitmap(0, 0, 40, 20, $image);
=head1 DESCRIPTION
This module outputs C<Image::Magick> image objects as ASCII Art, using a variety of output
dithering modes and output drivers (currently supported is a plain old ANSI termical
output driver and a curses driver).
=head1 METHODS
=over
=item C<new( opt =E<gt> 'value', ... )>
Returns a new C<Image::Caa> object. The options are as follows:
lib/Image/Caa.pm view on Meta::CPAN
Copyright (C) 2006, Cal Henderson <cal@iamcal.com>
This library is based on libcaca's bitmap.c
libcaca is Copyright (C) 2004 Sam Hocevar <sam@zoy.org>
libcaca is licensed under the GNU Lesser General Publice License
=head1 SEE ALSO
L<Image::Magick>, L<http://sam.zoy.org/libcaca/>
=cut
( run in 0.967 second using v1.01-cache-2.11-cpan-beeb90c9504 )