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

Download:
Tk-PhotoRotate-1.1.tar.gz

Annotate this POD

CPAN RT

New  1
Open  0
View Bugs
Report a bug
Source  

NAME ^

Tk::PhotoRotateSimple - rotate Photos by 90 degrees.

SYNOPSIS ^

 $photo->rotate_simple(direction, [update]);

DESCRIPTION ^

Tk::PhotoRotateSimple is a Photo method that either flips an image 180 degress, or rotates it 90 degrees clockwise or 90 degrees anti-clockwise.

Algorithm from img_rotate.tcl by Ryan Casey.

OPTIONS ^

The following option/value pairs are supported:

direction

direction can be flip, l90 or r90, for a 180 degree, 90 degree anti-clockwise, or 90 degree clockwise rotation, respectively.

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_simple('l90');

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