class COrientationTransformExtension : public CImageTransformPluginExtension |
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.
Public Member Functions | |
---|---|
IMPORT_C void | SetOrientationL(TOrientation) |
Protected Member Functions | |
---|---|
void | DoSetOrientationL(TOrientation) |
Private Member Functions | |
---|---|
IMPORT_C void | ReservedVirtual5() |
Public Member Enumerations | |
---|---|
enum | TOrientation { ERotationNone = 1, ERotation90DegreesClockwise = 6, ERotation180DegreesClockwise = 3, ERotation270DegreesClockwise = 8, EMirrorVerticalAxis = 2, EMirrorHorizontalAxis = 4, ETransposeOverMainDiagonal = 5, ETransposeOverMinorDiagonal = 7 } |
Private Attributes | |
---|---|
TAny * | iPad |
void | DoSetOrientationL | ( | TOrientation | aOrientation | ) | [protected, pure virtual] |
TOrientation aOrientation |
IMPORT_C void | SetOrientationL | ( | TOrientation | aOrientation | ) |
This function sets the orientation of the image
TOrientation aOrientation | The orientation of the image |
The possible orientations of the image. Similar to the EXIF orientation tag
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. |