class MBitmapScalerPlugin |
Plugin API for the BitmapTransforms Library bitmap scaling. The CBitmapScaler implementation loads a plugin based on this interface class. Once this has been constructed, calls to method functions of CBitmapScaler are passed verbatim to this interface. For further description of required functionality, see CBitmapScaler .
Public Member Functions | |
---|---|
~MBitmapScalerPlugin () | |
void | Cancel () |
TInt | CustomCommand ( TUid , TAny *) |
void | Scale ( TRequestStatus *, CFbsBitmap &, CFbsBitmap &, TBool ) |
void | Scale ( TRequestStatus *, CFbsBitmap &, const TSize &, TBool ) |
~MBitmapScalerPlugin | ( | ) | [inline, virtual] |
This must provide an implementation as defined by CBitmapScaler::~CBitmapScaler()
void | Cancel | ( | ) | [pure virtual] |
This must provide an implementation as defined by CBitmapScaler::Cancel()
TInt | CustomCommand | ( | TUid | aUid, |
TAny * | aParam | |||
) | [pure virtual] |
This must provide an implementation as defined by CBitmapScaler::CustomCommand(TUid aUid, TAny* aParam)
void | Scale | ( | TRequestStatus * | aRequestStatus, |
CFbsBitmap & | aSrcBitmap, | |||
CFbsBitmap & | aTgtBitmap, | |||
TBool | aMaintainAspectRatio = ETrue | |||
) | [pure virtual] |
This must provide an implementation as defined by CBitmapScaler::Scale (TRequestStatus* aRequestStatus, CFbsBitmap & aSrcBitmap, CFbsBitmap & aTgtBitmap, TBool aMaintainAspectRatio = ETrue)
CBitmapScaler::Scale (TRequestStatus* aRequestStatus, CFbsBitmap & aSrcBitmap, CFbsBitmap & aTgtBitmap, TBool aMaintainAspectRatio = ETrue )
TRequestStatus * aRequestStatus | On return, contains a pointer to the completion status of the rescale of the bitmap. |
CFbsBitmap & aSrcBitmap | The bitmap to be re-scaled. |
CFbsBitmap & aTgtBitmap | The target location for the re-scaled bitmap. |
TBool aMaintainAspectRatio = ETrue | A boolean indicating if the aspect ratio is maintained. ETrue means the aspect ratio is retained; this is the default. The same scaling factor is applied in both the horizontal and vertical directions. This is the smaller of the horizontal scaling factor and the vertical scaling factor. EFalse means the aspect ratio need not be retained. |
void | Scale | ( | TRequestStatus * | aRequestStatus, |
CFbsBitmap & | aBitmap, | |||
const TSize & | aDestinationSize, | |||
TBool | aMaintainAspectRatio = ETrue | |||
) | [pure virtual] |
This must provide an implementation as defined by CBitmapScaler::Scale (TRequestStatus* aRequestStatus, CFbsBitmap & aBitmap, const TSize & aDestinationSize, TBool aMaintainAspectRatio = ETrue)
CBitmapScaler::Scale (TRequestStatus* aRequestStatus, CFbsBitmap & aBitmap, const TSize & aDestinationSize, TBool aMaintainAspectRatio = ETrue )
TRequestStatus * aRequestStatus | On return, contains a pointer to the completion status of the rescale of the bitmap. |
CFbsBitmap & aBitmap | The bitmap to be re-scaled. This reference is also the target location for the re-scaled bitmap. |
const TSize & aDestinationSize | The requested target size for the re-scaled bitmap. |
TBool aMaintainAspectRatio = ETrue | A boolean indicating if the aspect ratio is maintained. ETrue means the aspect ratio is retained; this is the default. The same scaling factor is applied in both the horizontal and vertical directions. This is the smaller of the horizontal scaling factor and the vertical scaling factor. EFalse means the aspect ratio need not be retained. |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.