#include <icl/orientationtransformextension.h>
Link against: imagetransform.lib
class COrientationTransformExtension : public CImageTransformPluginExtension, public CImageTransformPluginExtension |
Public Member Enumerations | |
---|---|
enum | TOrientation { ERotationNone, ERotation90DegreesClockwise, ERotation180DegreesClockwise, ERotation270DegreesClockwise, ..., ETransposeOverMinorDiagonal } |
Public Member Functions | |
---|---|
IMPORT_C void | SetOrientationL(TOrientation) |
Protected Member Functions | |
---|---|
pure virtual void | DoSetOrientationL(TOrientation) |
The Orientation Extension to the ImageTransform plugin.
The class provides the methods to set the image orientation and is intended to be implemented by the plugins supporting the rotation of the image based on the orientation. The plugin supporting this extension must use the opaque_data v2 format in RSS file and also the orientation flag must be set in the opaque_data. The client must retrieve this extension implementation from the plugin using its extension UID.
The possible orientations of the image. Similar to the EXIF orientation tag
Enumerator | Value | Description |
---|---|---|
ERotationNone | 1 |
No rotation done |
ERotation90DegreesClockwise | 6 |
Rotate the image clockwise through 90 degrees. |
ERotation180DegreesClockwise | 3 |
Rotate the image clockwise through 180 degrees. |
ERotation270DegreesClockwise | 8 |
Rotate the image clockwise through 270 degrees. |
EMirrorVerticalAxis | 2 |
Mirror the image over its vertical axis |
EMirrorHorizontalAxis | 4 |
Mirror the image over its horizontal axis |
ETransposeOverMainDiagonal | 5 |
Transpose (or mirror) the image across a diagonal running from top-left to lower-right. |
ETransposeOverMinorDiagonal | 7 |
Transpose (or mirror) the image across a diagonal running from top-right to lower-left. |
void | DoSetOrientationL | ( | TOrientation | aOrientation | ) | [protected, pure virtual] |
IMPORT_C void | SetOrientationL | ( | TOrientation | aOrientation | ) |
This function sets the orientation of the image
Parameters | |
---|---|
aOrientation | The orientation of the image |