Brian Cassidy > Image-TextMode > Image::TextMode::Renderer::GD

Download:
Image-TextMode-0.23.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source  

NAME ^

Image::TextMode::Renderer::GD - A GD-based renderer for text mode images

SYNOPSIS ^

    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 );

DESCRIPTION ^

This module allows you to render your text mode image though the GD graphics library.

METHODS ^

new( %args )

Creates a new instance.

thumbnail( $source, \%options )

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.

fullscale( $source, \%options )

Renders a pixel-by-pixel representation of the text mode image. You may use the following options to change the output:

AUTHOR ^

Brian Cassidy <bricas@cpan.org>

COPYRIGHT AND LICENSE ^

Copyright 2008-2013 by Brian Cassidy

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: