Zane C. Bowers-Hadley > Image-Size-FillFullSelect > Image::Size::FillFullSelect

Download:
Image-Size-FillFullSelect-0.1.0.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.1.0   Source  

NAME ^

Image::Size::FillFullSelect - Choose wether a image fill setting for a image should be fill or full.

VERSION ^

Version 0.1.0

SYNOPSIS ^

Decides if the fill setting for a image should be either fill, in meaning the image should be resized to fix the screen, or full which means it should be scaled to fit the screen.

    use Image::Size::FillFullSelect;

    my $iffs = Image::Size::FillFullSelect->new();
    my $FFselection = $iffs->select("someImage.gif");

FUNCTIONS ^

new

This creates a new Image::Size::FillFullSelect object.

It takes one optional arguement, which is a integer that represents the maximum difference between the X and Y dimensions of a image. The default is .2, which means the maximum differce between either can be 20%.

select

This makes the selection between the two.

It takes two arguements and three optional ones.

The first arguement is the image.

The second is the max difference when the size of the picture is used to devide each other.

The third is continuation of the second, but defaults what ever the second is if it is not specified.

The fourth is comparative X resolution to use.

The fifth is the comparative Y resolution to use.

Upon a error, it returns undef.

    my $filltype=$iffs->select($image, '.2', undef, '800', '600');

AUTHOR ^

Zane C. Bowers, <vvelox at vvelox.net>

BUGS ^

Please report any bugs or feature requests to bug-image-size-fillfullselect at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Image-Size-FillFullSelect. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT ^

You can find documentation for this module with the perldoc command.

    perldoc Image::Size::FillFullSelect

You can also look for information at:

ACKNOWLEDGEMENTS ^

COPYRIGHT & LICENSE ^

Copyright 2008 Zane C. Bowers, all rights reserved.

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

syntax highlighting: