Location:
BitmapTransforms.h
Link against: bitmaptransforms.lib
class CBitmapScaler : public CBase;
The public API for clients to call the BitmapTransforms Library bitmap scaling.
CBase
- Base class for all classes to be instantiated on the heap
CBitmapScaler
- The public API for clients to call the BitmapTransforms Library bitmap scaling
Defined in CBitmapScaler
:
Cancel()
, CustomCommand()
, DisablePostProcessing()
, EMaximumQuality
, EMediumQuality
, EMinimumQuality
, NewL()
, Scale()
, Scale()
, SetQualityAlgorithm()
, TQualityAlgorithm
, UseLowMemoryAlgorithm()
, ~CBitmapScaler()
Inherited from CBase
:
Delete()
,
Extension_()
,
operator new()
static IMPORT_C CBitmapScaler *NewL();
Constructs a CBitmapScaler object.
|
IMPORT_C ~CBitmapScaler();
This is the destructor for the CBitmapScaler and is responsible for deallocating all resources alloctaed by the CBitmapScaler.
IMPORT_C void Scale(TRequestStatus *aRequestStatus, CFbsBitmap &aSrcBitmap, CFbsBitmap &aTgtBitmap, TBool aMaintainAspectRatio=ETrue);
Begins the bitmap re-scaling operation.
The scaling factor is based on the relative sizes of the source and target bitmaps. The operation is asynchronous. KErrOverFlow status is set if the sizes of input bitmaps are too large for the algorithm to handle.
The result of the operation is pointed to by aRequestStatus.
|
IMPORT_C void Scale(TRequestStatus *aRequestStatus, CFbsBitmap &aBitmap, const TSize &aDestinationSize, TBool aMaintainAspectRatio=ETrue);
Begins the bitmap re-scaling operation.
The scaling factor is based on the relative value of the source bitmap size and the explicitly supplied size. The operation
is asynchronous. When it is complete, successfully or otherwise, the TRequestStatus
is set, passing the state of the operation. KErrOverFlow status is set if the sizes of input bitmaps are too large for the
algorithm to handle.
|
IMPORT_C TInt CustomCommand(TUid aUid, TAny *aParam);
When a command requires parameters aParam is not NULL.
Provides custom command capabilties on CBitmapScaler. The command is dispatched on aUid and if the command is not known KErrNotSupported will be returned. This function is synchronous.
The Default implementation will support one command to enable and disable post processing on the scale operation The uid of this command is published in the header file. Changes to the status of Post Processing Enabled will become effective only after an exising scaling operation has completed.
|
|
inline TInt DisablePostProcessing(TBool aState);
SetPostProcessing
|
|
inline TInt UseLowMemoryAlgorithm(TBool aState);
UseLowMemory
|
|
inline TInt SetQualityAlgorithm(TQualityAlgorithm aQualityLevel);
SetQualityAlgorithm
|
|
TQualityAlgorithm
An enumeration to specify the level of quality algorithm.
|