COrientationTransformExtension Class Reference

#include <icl/orientationtransformextension.h>

Link against: imagetransform.lib

class COrientationTransformExtension : public CImageTransformPluginExtension, public CImageTransformPluginExtension

Detailed Description

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.

Member Enumeration Documentation

Enum TOrientation

The possible orientations of the image. Similar to the EXIF orientation tag

EnumeratorValueDescription
ERotationNone1

No rotation done

ERotation90DegreesClockwise6

Rotate the image clockwise through 90 degrees.

ERotation180DegreesClockwise3

Rotate the image clockwise through 180 degrees.

ERotation270DegreesClockwise8

Rotate the image clockwise through 270 degrees.

EMirrorVerticalAxis2

Mirror the image over its vertical axis

EMirrorHorizontalAxis4

Mirror the image over its horizontal axis

ETransposeOverMainDiagonal5

Transpose (or mirror) the image across a diagonal running from top-left to lower-right.

ETransposeOverMinorDiagonal7

Transpose (or mirror) the image across a diagonal running from top-right to lower-left.

Member Function Documentation

DoSetOrientationL ( TOrientation )

voidDoSetOrientationL(TOrientationaOrientation)[protected, pure virtual]

SetOrientationL ( TOrientation )

IMPORT_C voidSetOrientationL(TOrientationaOrientation)

This function sets the orientation of the image

Parameters
aOrientationThe orientation of the image