
Tk::PhotoRotate - rotate Photos by arbitrary angles.

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

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.

The following option/value pairs are supported:
angle is a positive integer (degrees) between 1 and 359, inclusive.
update is an optional boolean parameter. If TRUE, then idletasks() is called to update the image as it's being rotated.

$photo->rotate(45, 1);

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.

Photo, rotate