
Public Member Functions | |
| bool | enabled (self) |
| Gets whether this feature is currently enabled. | |
| None | enabled (self, bool enabled) |
| Enables or disables the feature. | |
| bool | left_right_enabled (self) |
| Gets the current left-right mirroring setting. | |
| None | left_right_enabled (self, bool value) |
| Sets whether the image should be mirrored left-right. | |
| bool | up_down_enabled (self) |
| Gets the current up-down mirroring setting. | |
| None | up_down_enabled (self, bool value) |
| Sets whether the image should be mirrored up-down. | |
| None | reset_to_default (self) |
| Resets the mirroring to no mirroring. | |
| None | __init__ (self, TransformationModule module) |
| Creates a MirrorFeature for an existing transformation module. | |
Protected Attributes | |
| _module = module | |
Mirror provides functionality to flip the image left-right or up-down.
|
|
|
|
See the Pixel and Pixel Format Specifications for a detailed description of the pixel formats.
The default value is no mirroring.
| None __init__ | ( | self, | |
| TransformationModule | module ) |
Creates a MirrorFeature for an existing transformation module.
| module | Reference to the underlying TransformationModule. |
| bool enabled | ( | self | ) |
Gets whether this feature is currently enabled.
Reimplemented from IFeature.
| None enabled | ( | self, | |
| bool | enabled ) |
Enables or disables the feature.
| enabled | True to enable, False to disable. |
Reimplemented from IFeature.
| bool left_right_enabled | ( | self | ) |
Gets the current left-right mirroring setting.
| None left_right_enabled | ( | self, | |
| bool | value ) |
Sets whether the image should be mirrored left-right.
| value | If true, the image will be mirrored along the vertical axis. |
| None reset_to_default | ( | self | ) |
Resets the mirroring to no mirroring.
Reimplemented from IFeature.
| bool up_down_enabled | ( | self | ) |
Gets the current up-down mirroring setting.
| None up_down_enabled | ( | self, | |
| bool | value ) |
Sets whether the image should be mirrored up-down.
| value | If true, the image will be mirrored along the horizontal axis. |
|
protected |