CGI::Application::PhotoGallery::GD - GD-based graphics adaptor


CGI-Application-PhotoGallery documentation  | view source Contained in the CGI-Application-PhotoGallery distribution.

Index


NAME

Top

CGI::Application::PhotoGallery::GD - GD-based graphics adaptor

SYNOPSIS

Top

    use CGI::Application::PhotoGallery::GD;

    my $lib     = CGI::Application::PhotoGallery::GD->new;
    my $pngdata = $lib->resize( $file, 100 );

METHODS

Top

new( )

creates a new CGI::Application::PhotoGallery::GD object.

resize( $file, $size )

Resizes $file to $sizex$size with transparent margins.

load( $file )

Loads $file and returns a GD::Image.

size( $file )

Returns the width and height of $file.

SEE ALSO

Top

* GD

AUTHOR

Top

Brian Cassidy <bricas@cpan.org>

COPYRIGHT AND LICENSE

Top


CGI-Application-PhotoGallery documentation  | view source Contained in the CGI-Application-PhotoGallery distribution.