ImageProcessor::TEffectRotation Class Reference

#include <imageprocessor/imageprocessoreffect.h>

Link against: imageprocessor.lib

class ImageProcessor::TEffectRotation : public ImageProcessor::TEffect

Inherits from

Detailed Description

The class provides functions to rotate an image through an arbitrary angle.

Member Enumeration Documentation

Enum TRotationScaleMode

Parameters to control the scale of the image when rotation is applied

EnumeratorValueDescription
ERotationScaleModeIgnore

The image is not scaled when rotation is applied, which is the default mode

ERotationScaleModeFitInside

The image will be rotated, and scaled to fit inside the margins of the original image

ERotationScaleModeFitOutside

The image will be rotated, and scaled to fully enclose the margins of the original image

Member Function Documentation

AngleL ( )

IMPORT_C TReal32AngleL()const

Gets the current rotation angle

Returns: The rotation angle

ScaleModeL ( )

IMPORT_C TRotationScaleModeScaleModeL()const

Gets the current rotation scale mode

Returns: The rotation scale mode

SetRotationL ( TRotationScaleMode, TReal32 )

IMPORT_C voidSetRotationL(TRotationScaleModeaScaleMode,
TReal32aAngle
)

Specifies the rotation scale mode and angle for the current rotation effect

leave
KErrNotReady The effect is not active.
leave
KErrArgument The level is not in the TRotationScaleMode enumeration or angle is not in the acceptable range.
ParameterDescription
aScaleModeThe rotation scale mode. Range (1) - (3).
aAngleThe rotation amgle. Range (0.0f) - (360.0f).