Last modified: December 25, 2011
mirror_horizontal ()
| Operates on: | Image [OneBit|GreyScale|Grey16|RGB|Float|Complex] |
|---|---|
| Category: | Transformation |
| Defined in: | transformation.py |
| Author: | Michael Droettboom, Karl MacMillan, and Christoph Dalitz |
Flips the image across the horizontal (x) axis.
Example 1: mirror_horizontal()
mirror_vertical ()
| Operates on: | Image [OneBit|GreyScale|Grey16|RGB|Float|Complex] |
|---|---|
| Category: | Transformation |
| Defined in: | transformation.py |
| Author: | Michael Droettboom, Karl MacMillan, and Christoph Dalitz |
Flips the image across the vertical (y) axis.
Example 1: mirror_vertical()
Image [OneBit|GreyScale|Grey16|RGB|Float|Complex] resize (Dim dim, Choice [None|Linear|Spline] interp_type)
| Operates on: | Image [OneBit|GreyScale|Grey16|RGB|Float|Complex] |
|---|---|
| Returns: | Image [OneBit|GreyScale|Grey16|RGB|Float|Complex] |
| Category: | Transformation |
| Defined in: | transformation.py |
| Author: | Michael Droettboom, Karl MacMillan, and Christoph Dalitz |
Returns a resized copy of an image. In addition to size, the type of interpolation can be specified, with a tradeoff between speed and quality.
If you need to maintain the aspect ratio of the original image, consider using scale instead.
Image [OneBit|GreyScale|Grey16|RGB|Float|Complex] rotate (float(-180.00, 180.00) angle, Pixel bgcolor = None, int(1, 3) order = 1)
| Operates on: | Image [OneBit|GreyScale|Grey16|RGB|Float|Complex] |
|---|---|
| Returns: | Image [OneBit|GreyScale|Grey16|RGB|Float|Complex] |
| Category: | Transformation |
| Defined in: | transformation.py |
| Author: | Michael Droettboom (With code from VIGRA by Ullrich Köthe) |
Rotates an image.
Example 1: rotate(32.0, (255, 255, 255), 3)
Example 2: rotate(15.0, 0j, 3)
Image [OneBit|GreyScale|Grey16|RGB|Float|Complex] scale (float scaling, Choice [None|Linear|Spline] interp_type)
| Operates on: | Image [OneBit|GreyScale|Grey16|RGB|Float|Complex] |
|---|---|
| Returns: | Image [OneBit|GreyScale|Grey16|RGB|Float|Complex] |
| Category: | Transformation |
| Defined in: | transformation.py |
| Author: | Michael Droettboom, Karl MacMillan, and Christoph Dalitz |
Returns a scaled copy of the image. In addition to scale, the type of interpolation can be specified, with a tradeoff between speed and quality.
If you need to change the aspect ratio of the original image, consider using resize instead.
Example 1: scale(0.5, 2)
Example 2: scale(2.0, 2)
shear_column (int column, int distance)
| Operates on: | Image [OneBit|GreyScale|Grey16|RGB|Float|Complex] |
|---|---|
| Category: | Transformation |
| Defined in: | transformation.py |
| Author: | Michael Droettboom, Karl MacMillan, and Christoph Dalitz |
Shears a given column by a given amount.
Example 1: shear_column(50, 10)
shear_row (int row, int distance)
| Operates on: | Image [OneBit|GreyScale|Grey16|RGB|Float|Complex] |
|---|---|
| Category: | Transformation |
| Defined in: | transformation.py |
| Author: | Michael Droettboom, Karl MacMillan, and Christoph Dalitz |
Shears a given row by a given amount.
Example 1: shear_row(50, 10)