Stephen O. Lidie > Tk-PhotoRotate-1.1 > Tk::PhotoRotate

Download:
Tk-PhotoRotate-1.1.tar.gz

Annotate this POD

Related Modules

Inline::C
Image::Magick
more...
By perlmonks.org

CPAN RT

New  1
Open  0
View Bugs
Report a bug
Source  

NAME ^

Tk::PhotoRotate - rotate Photos by arbitrary angles.

SYNOPSIS ^

 $photo->rotate(angle, [update]);

DESCRIPTION ^

Tk::PhotoRotate is a Photo method that rotates an image by an arbitrary amount. If 90, 180 or 270 degrees, then Tk::PhotoRotateSimple is used.

Zero degrees is "north", 90 degrees is "west", 180 degrees is "south", and 270 degrees is "east".

Translated verbatim from Richard Suchenwirth's version on the Tcl-ers' Wiki. With assistance from George Staplin and Donal Fellows.

OPTIONS ^

The following option/value pairs are supported:

angle

angle is a positive integer (degrees) between 1 and 359, inclusive.

update

update is an optional boolean parameter. If TRUE, then idletasks() is called to update the image as it's being rotated.

EXAMPLE ^

 $photo->rotate(45, 1);

AUTHOR ^

Stephen.O.Lidie@Lehigh.EDU

Copyright (C) 2001 - 2003, Steve Lidie. All rights reserved.

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

KEYWORDS ^

Photo, rotate