pymagery — python imagery
1.5.0 documentation / rot_90cw plugin
This plugin rotates the image 90 degrees clockwise. Since rotation in a multiple of 90 degrees requires no interpolation this plugin is not susceptible to information loss. The following is an example:
The plugin prototype is:
def rot_90cw()
The dimensions of an image are transposed since rows become columns and columns become rows.
The following example rotates an image by 90 degrees clockwise:
import pymagery
i = pymagery.image('foo.ppm')
i.rot_90cw()
Rotation by another 90 degrees clockwise is identical to a 180 degree rotation and a rotation by an additional 90 degrees clockwise is identical to a rotation 90 degrees counter-clockwise.
Change Log
- 1.0.0 — added
Copyright © 2008 Colin ML Burnett, released under GPLv2