#include <imageprocessor/imageprocessoreffect.h>
Link against: imageprocessor.lib
class ImageProcessor::TEffectRotation : public ImageProcessor::TEffect |
Public Member Enumerations | |
---|---|
enum | TRotationScaleMode { ERotationScaleModeIgnore, ERotationScaleModeFitInside, ERotationScaleModeFitOutside } |
Public Member Functions | |
---|---|
IMPORT_C TReal32 | AngleL() |
IMPORT_C TRotationScaleMode | ScaleModeL() |
IMPORT_C void | SetRotationL(TRotationScaleMode, TReal32) |
Inherited Enumerations | |
---|---|
ImageProcessor::TEffect:TEffectInputType |
The class provides functions to rotate an image through an arbitrary angle.
Parameters to control the scale of the image when rotation is applied
Enumerator | Value | Description |
---|---|---|
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 |
IMPORT_C TRotationScaleMode | ScaleModeL | ( | ) | const |
Gets the current rotation scale mode
IMPORT_C void | SetRotationL | ( | TRotationScaleMode | aScaleMode, |
TReal32 | aAngle | |||
) |
Specifies the rotation scale mode and angle for the current rotation effect
Parameters | |
---|---|
aScaleMode | The rotation scale mode. Range (1) - (3). |
aAngle | The rotation amgle. Range (0.0f) - (360.0f). |
Leave Codes | |
---|---|
KErrNotReady | The effect is not active. |
KErrArgument | The level is not in the TRotationScaleMode enumeration or angle is not in the acceptable range. |