Rotate, Flip and Tile. A gimg allows an image to be rotated, flipped, and tiled in display. The option -rotate may have three values, i.e., -1, 0 and 1 for rotating to the left, no rotating and rotating to the right respectively. The option -xflip takes two values, i.e., 00 and 1 for no horizontal flipping and horizontal flipping respectively. The option -yflip also takes two values, i.e., 0 and 1 for no vertical flipping and vertical flipping respectively. A proper combination of options -rotate, -xflip and -yflip can generate various image rotations. To continuously rotate an image based on the current status is a little bit complicated. To simplify the process, a gimg command, image_of_gimgrotate?option? can be used. The available options are right (90 degrees in clockwise direction), left (90 degrees in count-clockwise direction), xflip (reverse in horizontal direction), and yflip (reversion in vertical direction). The command automatically configure proper values for options of -rotate, -xflip and -yflip to make a desired rotation based on the current image orientation status. The option -tile specifies the flag to display an image in tile. The size of a tiled image may be further defined with the options -tw and -th for the width and height respectively. The following examples are four simplest cases of image flips and rotations.
|