Location:
MdaImageConverter.h
Link against: MediaClientImage.lib
CMdaBitmapScaler
Supported from 5.0
Re-scales a bitmap.
The class offers a simple interface to perform arbitrary re-scaling of a bitmap.
|
Defined in CMdaBitmapScaler
:
CancelScaling()
, NewL()
, ScaleL()
Inherited from CBase
:
operator new()
static CMdaBitmapScaler* NewL();
Constructs and initialises a new instance of the image scaler.
The function leaves if the image scaler object cannot be created.
|
void ScaleL(MMdaImageUtilObserver& aObserver,CFbsBitmap& aSrcBitmap,CFbsBitmap& aTgtBitmap,TBool aMaintainAspectRatio = ETrue);
void ScaleL(MMdaImageUtilObserver& aObserver,CFbsBitmap& aSrcBitmap,TSize aDestSize,TBool aMaintainAspectRatio = ETrue);
Begins the bitmap re-scaling operation. The scaling factor is based either on:
the relative sizes of the source and target bitmaps
or
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 callback function
MMdaImageUtilObserver::MiuoConvertComplete()
is called, passing
the state of the operation.
|
void CancelScaling();
Cancels the bitmap re-scaling operation.
The observer callback function
MMdaImageUtilObserver::MiuoConvertComplete()
is not called.