NAME
Crypt::Image::Util - Helper for Crypt::Image module.
VERSION
Version v1.0.0
DESCRIPTION
Utility module for Crypt::Image. Methods can be accessed directly.
METHODS
cloneImage($image)
It clones the given $image (object of type GD::Image) and returns the clone of type GD::Image.
saveImage($file_name, $image, $type)
Saves the $image data as $file_name of the $type. The parameters are as below in sequence:
Filename with the complete path.
Object of type GD::Image for the image.
Type of the given image (png, gif or jpg).
moveDown($pixel, $number)
Moves the $pixel down by $number.
moveUp($pixel, $number)
Moves the $pixel up by $number.
getColor($r, $g, $b)
Returns the color index for the given <$r>, $g and $b.
splitInTwo($point)
It splits the $point into X, Y coordinates and returns an object of type Crypt::Image::Axis.
splitInThree($point)
It splits the $point into X, Y, Z coordinates and returns an object of type Crypt::Image::Axis.
differenceInAxis($key_image, $new_image, $x, $y)
It returns the absolute difference in the R, G and B of the $key_image and cloned images at $x and $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($image, $x, $y)
Returns the R, G, B of the $image at the $x, $y coordinates. Parameters are listed below in sequence:
Object of type GD::Image for the image.
X coordinate.
Y coordinate.
AUTHOR
Mohammad Sajid Anwar, <mohammad.anwar at yahoo.com>
REPOSITORY
https://github.com/manwar/Crypt-Image
BUGS
Please report any bugs / feature requests through the web interface at https://github.com/manwar/Crypt-Image/issues. 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:
ISSUES
Search MetaCPAN
LICENSE AND COPYRIGHT
Copyright (C) 2011 - 2026 Mohammad Sajid Anwar.
This program is free software; you can redistribute it and/or modify it under the terms of the Artistic License (2.0).