NAME
Imager::AverageGray - Finds the average gray for a Imager object or image.
VERSION
Version 0.0.0
SYNOPSIS
Quick summary of what the module does.
Perhaps a little code snippet.
use Imager::AverageGray;
my $ag = Imager::AverageGray->new();
...
METHODES
new
Initiates the object.
my $ag=Imager::AverageGray->new;
fromFile
This returns the average gray from a specified file.
my $gray=$ag->fromFile('image.jpg');
if($ag->{error}){
print 'Error:'.$ag->{error}.': '.$ag->{errorString}."\n";
}
fromObject
This finds the average gray for a Imager object.
my $gray=$ag->fromObject($img);
if($ag->{error}){
print 'Error:'.$ag->{error}.': '.$ag->{errorString}."\n";
}
errorblank
This blanks the error storage and is only meant for internal usage.
It does the following.
$self->{error}=undef;
$self->{errorString}="";
ERROR CODES
1
File does not exist.
2
The specified file is not a file.
3
Imager failed to read the file.
AUTHOR
Zane C. Bowers, <vvelox at vvelox.net>
BUGS
Please report any bugs or feature requests to bug-image-averagegray at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Image-AverageGray. 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::AverageGray
You can also look for information at:
RT: CPAN's request tracker
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
Search CPAN
ACKNOWLEDGEMENTS
COPYRIGHT & LICENSE
Copyright 2009 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.