1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // This is Image Transform extension for Rotate/Flip Transformations
24 #ifndef __ORIENTATIONTRANFORMEEXTENSION_H__
25 #define __ORIENTATIONTRANFORMEEXTENSION_H__
28 #include <icl/imagetransformpluginext.h>
29 #include <icl/icl_uids.hrh>
35 The Orientation Extension to the ImageTransform plugin.
37 The class provides the methods to set the image orientation and is intended to be implemented
38 by the plugins supporting the rotation of the image based on the orientation. The plugin
39 supporting this extension must use the opaque_data v2 format in RSS file and also the orientation flag
40 must be set in the opaque_data. The client must retrieve this extension implementation from
41 the plugin using its extension UID.
43 class COrientationTransformExtension : public CImageTransformPluginExtension
47 The possible orientations of the image. Similar to the EXIF orientation tag
56 Rotate the image clockwise through 90 degrees.
58 ERotation90DegreesClockwise = 6,
60 Rotate the image clockwise through 180 degrees.
62 ERotation180DegreesClockwise = 3,
64 Rotate the image clockwise through 270 degrees.
66 ERotation270DegreesClockwise = 8,
68 Mirror the image over its vertical axis
70 EMirrorVerticalAxis = 2,
72 Mirror the image over its horizontal axis
74 EMirrorHorizontalAxis = 4,
76 Transpose (or mirror) the image across a diagonal running from top-left to lower-right.
78 ETransposeOverMainDiagonal = 5,
80 Transpose (or mirror) the image across a diagonal running from top-right to lower-left.
82 ETransposeOverMinorDiagonal = 7
85 IMPORT_C void SetOrientationL(TOrientation aOrientation ) ;
88 virtual void DoSetOrientationL(TOrientation aOrientation) = 0;
91 IMPORT_C virtual void ReservedVirtual5();
98 #endif // __ORIENTATIONTRANFORMEEXTENSION_H__