class MIHLScaler |
Pure virtual interface to bitmap scaler using Font and Bitmap Server bitmaps.
If interface needs to be pushed into CleanupStack, remember to use CleanupStackDeletePushL() function! DO NOT USE CleanupStack::PushL()!!
Public Member Functions | |
---|---|
~MIHLScaler() | |
void | CancelProcess() |
TBool | IsBusy() |
TInt | Scale(TRequestStatus &, const CFbsBitmap &, const TRect &, CFbsBitmap &, const TRect &) |
void | SetFilter(MIHFilter *) |
Public Member Enumerations | |
---|---|
enum | TOptions { EOptionUseBilinearInterpolation = 0x01 } |
void | CancelProcess | ( | ) | [pure virtual] |
TInt | Scale | ( | TRequestStatus & | aStatus, |
const CFbsBitmap & | aSrcBitmap, | |||
const TRect & | aSrcRect, | |||
CFbsBitmap & | aDstBitmap, | |||
const TRect & | aDstRect | |||
) | [pure virtual] |
Scale rectangle from source bitmap to a rectangle in destination bitmap. Scaled area can be also rotated and/or mirrored during process.
Rotating is done by defining SOURCE rectangle topleft and bottomright corners in following way:
No rotate: tl----- 90 degree: -----tl | | | | | | | | -----br br-----
180 degree: br----- 270 degree: -----br | | | | | | | | -----tl tl-----
Mirroring is done by defining DESTINATION rectangle topleft and bottomright corners in following way:
No mirroring: tl----- | | | | -----br
X-axis mirroring: -----tl | | | | br-----
Y-axis mirroring: -----br | | | | tl-----
X and Y-axis br----- mirroring: | | | | -----tl
TRequestStatus & aStatus | Process request status reference. |
const CFbsBitmap & aSrcBitmap | Source bitmap reference. |
const TRect & aSrcRect | Rectangle that is processed from source bitmap. |
CFbsBitmap & aDstBitmap | Destination bitmap reference. If destination bitmap has null handle, processor will create new bitmap using size of destination rectangle. |
const TRect & aDstRect | Rectangle that is filled in destination bitmap. |
void | SetFilter | ( | MIHFilter * | aFilter | ) | [pure virtual] |
MIHFilter * aFilter |
EOptionUseBilinearInterpolation = 0x01 |
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.