| IPA documentation | Contained in the IPA distribution. |
IPA::Geometry - mapping pixels from one location to another
Mirrors IMAGE vertically or horizontally, depending on integer type,
which can be one of the following constants:
IPA::Geometry::vertical IPA::Geometry::horizontal
Supported types: all
Shifts image in direction where, which is one of the following constants
IPA::Geometry::vertical IPA::Geometry::horizontal
by the offset, specified by integer size.
Supported types: all, except that the horizontal transformation does not support 1- and 4- bit images.
Rotates image on 90 degrees clockwise or counter-clockwise
Rotates image on 180 degrees
| IPA documentation | Contained in the IPA distribution. |
# $Id$ package IPA::Geometry; use strict; require Exporter; use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS); @ISA = qw(Exporter); $VERSION = '0.02'; @EXPORT = qw(); @EXPORT_OK = qw(mirror shift_rotate rotate90 rotate180); %EXPORT_TAGS = (one2one => [qw(mirror)]); use constant vertical => 1; use constant horizontal => 2; 1; __DATA__