epoc32/include/icl/orientationtransformextension.h
branchSymbian3
changeset 4 837f303aceeb
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/icl/orientationtransformextension.h	Wed Mar 31 12:33:34 2010 +0100
     1.3 @@ -0,0 +1,98 @@
     1.4 +// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +// This is Image Transform extension for Rotate/Flip Transformations
    1.18 +// 
    1.19 +//
    1.20 +
    1.21 +/**
    1.22 + @file
    1.23 + @publishedAll 
    1.24 + @released
    1.25 +*/
    1.26 +
    1.27 +#ifndef __ORIENTATIONTRANFORMEEXTENSION_H__
    1.28 +#define __ORIENTATIONTRANFORMEEXTENSION_H__
    1.29 +
    1.30 +#include <e32base.h>
    1.31 +#include <icl/imagetransformpluginext.h>
    1.32 +#include <icl/icl_uids.hrh>
    1.33 +
    1.34 +/**
    1.35 +@publishedAll 
    1.36 +@released
    1.37 +
    1.38 +The Orientation Extension to the ImageTransform plugin.
    1.39 + 
    1.40 +The class provides the methods to set the image orientation and is intended to be implemented
    1.41 +by the plugins supporting the rotation of the image based on the orientation. The plugin
    1.42 +supporting this extension must use the opaque_data v2 format in RSS file and also the orientation flag
    1.43 +must be set in the opaque_data. The client must retrieve this extension implementation from 
    1.44 +the plugin using its extension UID. 
    1.45 +*/
    1.46 +class COrientationTransformExtension : public CImageTransformPluginExtension
    1.47 +	{
    1.48 +public:
    1.49 +	/** 
    1.50 +	The possible orientations of the image. Similar to the EXIF orientation tag
    1.51 +	*/
    1.52 +	enum TOrientation
    1.53 +		{
    1.54 +		/**
    1.55 +		No rotation done
    1.56 +		*/
    1.57 +		ERotationNone = 1,
    1.58 +		/**
    1.59 +		Rotate the image clockwise through 90 degrees.
    1.60 +		*/
    1.61 +		ERotation90DegreesClockwise = 6,
    1.62 +		/**
    1.63 +		Rotate the image clockwise through 180 degrees.
    1.64 +		*/
    1.65 +		ERotation180DegreesClockwise = 3,
    1.66 +		/**
    1.67 +		Rotate the image clockwise through 270 degrees.
    1.68 +		*/
    1.69 +		ERotation270DegreesClockwise = 8,
    1.70 +		/** 
    1.71 +		Mirror the image over its vertical axis
    1.72 +		*/
    1.73 +		EMirrorVerticalAxis = 2,
    1.74 +		/**
    1.75 +		Mirror the image over its horizontal axis
    1.76 +		*/
    1.77 +		EMirrorHorizontalAxis = 4,
    1.78 +		/**
    1.79 +		Transpose (or mirror) the image across a diagonal running from top-left to lower-right.
    1.80 +		*/
    1.81 +		ETransposeOverMainDiagonal = 5,
    1.82 +		/**
    1.83 +		Transpose (or mirror) the image across a diagonal running from top-right to lower-left.
    1.84 +		*/
    1.85 +		ETransposeOverMinorDiagonal = 7
    1.86 +		};	
    1.87 +
    1.88 +	IMPORT_C void SetOrientationL(TOrientation aOrientation ) ;
    1.89 +
    1.90 +protected:
    1.91 +	virtual void DoSetOrientationL(TOrientation aOrientation) = 0;
    1.92 +
    1.93 +private:
    1.94 +	IMPORT_C virtual void ReservedVirtual5();
    1.95 +
    1.96 +private:	
    1.97 +	// Future proofing
    1.98 +	TAny* iPad;
    1.99 +	};
   1.100 +
   1.101 +#endif // __ORIENTATIONTRANFORMEEXTENSION_H__