ImageProcessor::TEffectRotation Class Reference

class ImageProcessor::TEffectRotation : public ImageProcessor::TEffect

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

Inherits from

Constructor & Destructor Documentation

TEffectRotation(Plugin::MEffect &, CImageProcessorImpl &)

TEffectRotation ( Plugin::MEffect & aEffect,
CImageProcessorImpl & aImageProcessorImpl
) [private]

Parameters

Plugin::MEffect & aEffect
CImageProcessorImpl & aImageProcessorImpl

Member Functions Documentation

AngleL()

IMPORT_C TReal32 AngleL ( ) const

Gets the current rotation angle

ScaleModeL()

IMPORT_C TRotationScaleMode ScaleModeL ( ) const

Gets the current rotation scale mode

SetRotationL(TRotationScaleMode, TReal32)

IMPORT_C void SetRotationL ( TRotationScaleMode aScaleMode,
TReal32 aAngle
)

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.

Parameters

TRotationScaleMode aScaleMode The rotation scale mode. Range (1) - (3).
TReal32 aAngle The rotation amgle. Range (0.0f) - (360.0f).

Member Enumerations Documentation

Enum TRotationScaleMode

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

Enumerators

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