The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Crypt::Image::Util - Helper for Crypt::Image module.

VERSION

Version 0.02

DESCRIPTION

Utility module for Crypt::Image. Methods can be accessed directly.

METHODS

cloneImage()

Clone the given image (object of type GD::Image) and returns the clone of type GD::Image.

saveImage()

Saves the given image data as given file name of the given type. The parameters are listed below in sequence:

  • Filename with the complete path.

  • Object of type GD::Image for the image.

  • Type of the given image.

moveDown()

Moves the given pixel down by given number.

moveUp()

Moves the given pixel up by given number.

getColor()

Returns the color index for the given R, G and B.

splitInTwo()

Splits the given point into X,Y coordinates & returns an object of type Crypt::Image::Axis.

splitInThree()

Splits the given point into X,Y,Z coordinates & returns an object of type Crypt::Image::Axis.

differenceInAxis()

Returns the absolute difference in the R, G and B of the given key and cloned images at X & Y coordinates. The parameters are listed below in sequence:

  • Object of type GD::Image for key image.

  • Object of type GD::Image for new image.

  • X coordinate.

  • Y coordinate.

getPixelColorRGB()

Returns the R, G, B of the given image at the given X,Y coordinates. The parameters are listed below in sequence:

  • Object of type GD::Image for the image.

  • X coordinate.

  • Y coordinate.

AUTHOR

Mohammad S Anwar, <mohammad.anwar at yahoo.com>

BUGS

Please report any bugs or feature requests to bug-crypt-image at rt.cpan.org or through the the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Crypt-Image. 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 Crypt::Image::Util

You can also look for information at:

LICENSE AND COPYRIGHT

Copyright 2011 Mohammad S Anwar.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.

DISCLAIMER

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.