Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <MdaImageConverter.h>
Link against: mediaclientimage.lib

Class CMdaBitmapRotator

Interface status: deprecated

class CMdaBitmapRotator : public CBase;

Description

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.

Derivation

Members

Defined in CMdaBitmapRotator:

Inherited from CBase:

See also:


Construction and destruction


NewL()

Interface status: deprecated Inherited from: CMdaBitmapRotator

IMPORT_C static CMdaBitmapRotator* NewL();

Description

Constructs and initialises a new instance of the image rotator.

The function leaves if the image rotator object cannot be created.

Return value

CMdaBitmapRotator *

A pointer to the new image rotator object.


~CMdaBitmapRotator()

Interface status: deprecated Inherited from: CMdaBitmapRotator

IMPORT_C virtual ~CMdaBitmapRotator();

Description

Default destructor.

Frees all associated resources.

[Top]


Member functions


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

Interface status: deprecated Inherited from: CMdaBitmapRotator

IMPORT_C void RotateL(MMdaImageUtilObserver &aObserver, CFbsBitmap &aSrcBitmap, CFbsBitmap &aTgtBitmap, TRotationAngle aAngle);

Description

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(TInt) is called, passing the state of the operation.

Parameters

MMdaImageUtilObserver &aObserver

The image utility observer interface.

CFbsBitmap &aSrcBitmap

The bitmap to be rotated.

CFbsBitmap &aTgtBitmap

The target location for the rotated bitmap.

CMdaBitmapRotator::TRotationAngle aAngle

The angle through which the bitmap is to be rotated.


RotateL(MMdaImageUtilObserver &,CFbsBitmap &,TRotationAngle)

Interface status: deprecated Inherited from: CMdaBitmapRotator

IMPORT_C void RotateL(MMdaImageUtilObserver &aObserver, CFbsBitmap &aBitmap, TRotationAngle aAngle);

Description

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(TInt) is called, passing the state of the operation.

Parameters

MMdaImageUtilObserver &aObserver

The image utility observer interface.

CFbsBitmap &aBitmap

The bitmap to be rotated. This reference is also the target location for the rotated bitmap.

CMdaBitmapRotator::TRotationAngle aAngle

The angle through which the bitmap is to be rotated.


CancelRotation()

Interface status: deprecated Inherited from: CMdaBitmapRotator

IMPORT_C void CancelRotation();

Description

Cancels the bitmap rotation operation.

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

[Top]


Member enumerations


Enum TRotationAngle

Interface status: deprecated Inherited from: CMdaBitmapRotator

TRotationAngle

Description

Rotation angle.

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.