MIHLScaler Class Reference

class MIHLScaler

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() !!

IHL.lib
Since
3.0
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 }

Constructor & Destructor Documentation

~MIHLScaler()

~MIHLScaler ( ) [inline, virtual]

Virtual destructor.

Member Functions Documentation

CancelProcess()

void CancelProcess ( ) [pure virtual]
Cancel pending request. If not active, method does nothing.
Since
3.0

IsBusy()

TBool IsBusy ( ) const [pure virtual]
Check if processor has request pending.
Since
3.0

Scale(TRequestStatus &, const CFbsBitmap &, const TRect &, CFbsBitmap &, const TRect &)

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

Since
3.0

Parameters

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.

SetFilter(MIHFilter *)

void SetFilter ( MIHFilter * aFilter ) [pure virtual]
Set filter. For future use, not used currently!
Since
3.0

Parameters

MIHFilter * aFilter

Member Enumerations Documentation

Enum TOptions

Flags to control scaler functionality. These can be combined using an OR operation.
Since
3.0

Enumerators

EOptionUseBilinearInterpolation = 0x01