#include <bitmaptransforms.h>
Link against: bitmaptransforms.lib
class CBitmapRotator : public CBase |
Public Member Enumerations | |
---|---|
enum | TRotationAngle { ERotation90DegreesClockwise, ERotation180DegreesClockwise, ERotation270DegreesClockwise, EMirrorHorizontalAxis, EMirrorVerticalAxis } |
Public Member Functions | |
---|---|
~CBitmapRotator() | |
IMPORT_C void | Cancel() |
IMPORT_C TInt | CustomCommand(TUid, TAny *) |
IMPORT_C CBitmapRotator * | NewL() |
IMPORT_C void | Rotate(TRequestStatus *, CFbsBitmap &, CFbsBitmap &, TRotationAngle) |
IMPORT_C void | Rotate(TRequestStatus *, CFbsBitmap &, TRotationAngle) |
The public API for clients to call the BitmapTransforms Library bitmap rotation.
The enumeration provides a set of supported rotation and mirror angles. TRotationAngle is an enumeration within the namespace CBitmapRotator.
Enumerator | Value | Description |
---|---|---|
ERotation90DegreesClockwise |
Used to rotate a bitmap 90 degrees clockwise. | |
ERotation180DegreesClockwise |
Used to rotate a bitmap 180 degrees clockwise. | |
ERotation270DegreesClockwise |
Used to rotate a bitmap 270 degrees clockwise. | |
EMirrorHorizontalAxis |
Used to mirror a bitmap about the horizontal axis. | |
EMirrorVerticalAxis |
Used to mirror a bitmap about the vertical axis. |
IMPORT_C | ~CBitmapRotator | ( | ) |
Default destructor for this class.
Frees all resources owned by the object prior to its destruction.
Provides custom command capabilties on CBitmapRotator. The command is dispatched on aUid and if the command is not known KErrNotSupported will be returned. This function is synchronous.
Parameters | |
---|---|
aUid | The ID of the command. |
aParam | The command specific information. |
IMPORT_C CBitmapRotator * | NewL | ( | ) | [static] |
Constructs a CBitmapRotator object.
If any errors are encountered this function leaves with an appropriate leave code.
IMPORT_C void | Rotate | ( | TRequestStatus * | aRequestStatus, |
CFbsBitmap & | aSrcBitmap, | |||
CFbsBitmap & | aTgtBitmap, | |||
TRotationAngle | aAngle | |||
) |
Schedules a rotate/mirror operation on a bitmap supplied in the aSrcBitmap paramter and produces the output pointed to by aTgtBitmap. The CBitmapRotator is an active object and as such provides asynchronous operations. The result of the operation is pointed to by aRequestStatus.
aRequestStatus is not a NULL pointer.
aSrcBitmap is a fully constructed bitmap of unknown size including zero dimension
aTgtBitmap is a fully constructed bitmap of unknown size including zero dimension
aAngle is a member of the enumeration TRotationAngle.
Parameters | |
---|---|
aRequestStatus | A pointer to the completion status of the asynchronous operation. |
aSrcBitmap | This bitmap should have been created |
aTgtBitmap | This bitmap should have been created |
aAngle | A member of the enumeration TRotationAngle that specifies the rotation mirror operation. |
Panic Codes | |
---|---|
ENoSourceBitmap | This function panics with TBitmapTransformsMain::ENoSourceBitmap when the aSrcBitmap has not been constructed ie. its handle is zero. |
IMPORT_C void | Rotate | ( | TRequestStatus * | aRequestStatus, |
CFbsBitmap & | aBitmap, | |||
TRotationAngle | aAngle | |||
) |
The function Rotate schedules a rotate/mirror operation on a bitmap supplied in the aBitmap whose output overwrites aBitmap. The result of the operation is pointed to by aRequestStatus.
aRequestStatus is not a NULL pointer.
aBitmap is a fully constructed bitmap of unknown size including zero dimension.
aAngle is a member of the enumeration TRotationAngle.
aBitmap contains the rotated bitmap.
aRequestStatus points to the value KErrorNone.
Parameters | |
---|---|
aRequestStatus | A pointer to the completion status of the asynchronous operation. |
aBitmap | A reference to a CFbsBitmap. This bitmap should have been created and is also an output. |
aAngle | A member of the enumeration TRotationAngle that specifies the rotation mirror operation. |
Panic Codes | |
---|---|
ENoSourceBitmap | This function panics with TBitmapTransformsMain::ENoSourceBitmap when the aSrcBitmap has not been constructed ie. its handle is 0. |