Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: MdaImageConverter.h
Link against: MediaClientImage.lib

Class CMdaBitmapRotator

CMdaBitmapRotator

Support

Supported from 5.0

Description

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

CBaseBase class for all classes to be instantiated on the heap
CMdaBitmapRotatorRotates a bitmap

Defined in CMdaBitmapRotator:
CancelRotation(), ERotation180DegreesClockwise, ERotation270DegreesClockwise, ERotation90DegreesClockwise, NewL(), RotateL(), TRotationAngle

Inherited from CBase:
operator new()


Construction


NewL()

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*

Pointer to the new image rotator object.

[Top]


Control


RotateL()

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

Description

Begins the rotation of a bitmap clockwise through the specified angle — overloaded function.

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

MMdaImageUtilObserver& aObserver

The image utility observer interface.

CFbsBitmap& aSrcBitmap

The bitmap to be rotated. This reference is also the target location for the rotated bitmap if the aTgtBitmap reference is not supplied.

CFbsBitmap& aTgtBitmap

If specified, the target location for the rotated bitmap.

TRotationAngle aAngle

The angle through which the bitmap is to be rotated.


CancelRotation()

void CancelRotation();

Description

Cancels the bitmap rotation operation.

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

[Top]


Enumerations


Enum TRotationAngle

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