#include <mdaimageconverter.h>
class CMdaBitmapRotator : public CBase |
Public Member Enumerations | |
---|---|
enum | TRotationAngle { ERotation90DegreesClockwise, ERotation180DegreesClockwise, ERotation270DegreesClockwise, EMirrorFlipHorizontal, EMirrorFlipVertical } |
Public Member Functions | |
---|---|
virtual | ~CMdaBitmapRotator() |
IMPORT_C void | CancelRotation() |
IMPORT_C CMdaBitmapRotator * | NewL() |
IMPORT_C void | RotateL(MMdaImageUtilObserver &, CFbsBitmap &, CFbsBitmap &, TRotationAngle) |
IMPORT_C void | RotateL(MMdaImageUtilObserver &, CFbsBitmap &, TRotationAngle) |
Replaced by Image Conversion library - see CBitmapRotator
Rotates a bitmap.
The class offers a simple interface to perform bitmap rotations in clockwise 90 degree increments. The target bitmap is resized as necessary.
See also: CBitmapRotator
Rotation angle.
IMPORT_C | ~CMdaBitmapRotator | ( | ) | [virtual] |
Default destructor.
Frees all associated resources.
IMPORT_C void | CancelRotation | ( | ) |
Cancels the bitmap rotation operation.
The observer callback function MMdaImageUtilObserver::MiuoConvertComplete() is not called.
IMPORT_C CMdaBitmapRotator * | NewL | ( | ) | [static] |
Constructs and initialises a new instance of the image rotator.
The function leaves if the image rotator object cannot be created.
Returns: A pointer to the new image rotator object.
IMPORT_C void | RotateL | ( | MMdaImageUtilObserver & | aObserver, |
CFbsBitmap & | aSrcBitmap, | |||
CFbsBitmap & | aTgtBitmap, | |||
TRotationAngle | aAngle | |||
) |
Begins the rotation of a bitmap clockwise through the specified angle and writes the output to the specified file.
The operation is asynchronous. When it is complete, successfully or otherwise, the callback function MMdaImageUtilObserver::MiuoConvertComplete() is called, passing the state of the operation.
Parameter | Description |
---|---|
aObserver | The image utility observer interface. |
aSrcBitmap | The bitmap to be rotated. |
aTgtBitmap | The target location for the rotated bitmap. |
aAngle | The angle through which the bitmap is to be rotated. |
IMPORT_C void | RotateL | ( | MMdaImageUtilObserver & | aObserver, |
CFbsBitmap & | aBitmap, | |||
TRotationAngle | aAngle | |||
) |
Begins the rotation of a bitmap clockwise through the specified angle.
The operation is asynchronous. When it is complete, successfully or otherwise, the callback function MMdaImageUtilObserver::MiuoConvertComplete() is called, passing the state of the operation.
Parameter | Description |
---|---|
aObserver | The image utility observer interface. |
aBitmap | The bitmap to be rotated. This reference is also the target location for the rotated bitmap. |
aAngle | The angle through which the bitmap is to be rotated. |