CMdaBitmapRotator Class Reference

#include <mdaimageconverter.h>

Link against: mediaclientimage.lib

class CMdaBitmapRotator : public CBase

Inherits from

Detailed Description

Deprecated

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.

Since
5.0

See also: CBitmapRotator

Member Enumeration Documentation

Enum TRotationAngle

Rotation angle.

EnumeratorValueDescription
ERotation90DegreesClockwise

A clockwise rotation through 90 degrees.

ERotation180DegreesClockwise

A clockwise rotation through 180 degrees.

ERotation270DegreesClockwise

A clockwise rotation through 270 degrees.

EMirrorFlipHorizontal

The bitmap is mirrored about the horizontal axis.

EMirrorFlipVertical

The bitmap is mirrored about the vertical axis.

Constructor & Destructor Documentation

~CMdaBitmapRotator ( )

IMPORT_C~CMdaBitmapRotator()[virtual]

Default destructor.

Frees all associated resources.

Member Function Documentation

CancelRotation ( )

IMPORT_C voidCancelRotation()

Cancels the bitmap rotation operation.

The observer callback function MMdaImageUtilObserver::MiuoConvertComplete() is not called.

NewL ( )

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.

Return Value
A pointer to the new image rotator object.

RotateL ( MMdaImageUtilObserver &, CFbsBitmap &, CFbsBitmap &, TRotationAngle )

IMPORT_C voidRotateL(MMdaImageUtilObserver &aObserver,
CFbsBitmap &aSrcBitmap,
CFbsBitmap &aTgtBitmap,
TRotationAngleaAngle
)

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.

Parameters
aObserverThe image utility observer interface.
aSrcBitmapThe bitmap to be rotated.
aTgtBitmapThe target location for the rotated bitmap.
aAngleThe angle through which the bitmap is to be rotated.

RotateL ( MMdaImageUtilObserver &, CFbsBitmap &, TRotationAngle )

IMPORT_C voidRotateL(MMdaImageUtilObserver &aObserver,
CFbsBitmap &aBitmap,
TRotationAngleaAngle
)

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.

Parameters
aObserverThe image utility observer interface.
aBitmapThe bitmap to be rotated. This reference is also the target location for the rotated bitmap.
aAngleThe angle through which the bitmap is to be rotated.