TImageBitmapUtil Class Reference

class TImageBitmapUtil

Bitmap utility class.

Nested Classes and Structures

Constructor & Destructor Documentation

TImageBitmapUtil()

IMPORT_C TImageBitmapUtil ( )

Default constructor for this class.

Member Functions Documentation

Begin()

IMPORT_C void Begin ( )

Requests a lock for the current bitmap from the font & bitmap server and sets the current position in the bitmap to the first pixel.

Begin(const TPoint &)

IMPORT_C TBool Begin ( const TPoint & aPosition )

Requests a lock for the current bitmap from the font & bitmap server and sets the current position in the bitmap to aPosition.

Parameters

const TPoint & aPosition The position to move to.

End()

IMPORT_C void End ( )

Releases a lock previously acquired using TImageBitmapUtil::Begin() .

SetBitmapL(CFbsBitmap *)

IMPORT_C void SetBitmapL ( CFbsBitmap * aBitmap )

Sets the current bitmap to aBitmap.

leave
KErrNotFound The bitmap or its handle is NULL or its display mode is not recognised.

Parameters

CFbsBitmap * aBitmap A pointer to the bitmap.

SetPixel(TUint32)

IMPORT_C void SetPixel ( TUint32 aPixelIndex )

Sets the pixel value at the current bitmap position using aPixelIndex.

Post-condition
The current position is updated.

Parameters

TUint32 aPixelIndex The pixel index.

SetPixels(TUint32 *, TInt)

IMPORT_C void SetPixels ( TUint32 * aPixelIndex,
TInt aNumberOfPixels
)

Sets an array of pixel values, starting at the current bitmap position using the values supplied in aPixelIndex.

Post-condition
The current position is updated.

Parameters

TUint32 * aPixelIndex A pointer to the first element in the array.
TInt aNumberOfPixels The number of elements in the array.

SetPos(const TPoint &)

IMPORT_C TBool SetPos ( const TPoint & aPosition )

Sets the current position in the bitmap to aPosition.

Parameters

const TPoint & aPosition The position to move to.

Member Data Documentation

TDataPointer iBase

TDataPointer iBase [private]

TInt iBitShift

TInt iBitShift [private]

CFbsBitmap * iBitmap

CFbsBitmap * iBitmap [private]

TInt iBpp

TInt iBpp [private]

TInt iBppShift

TInt iBppShift [private]

TDataPointer iData

TDataPointer iData [private]

TUint32 iMask

TUint32 iMask [private]

TInt iPixelShift

TInt iPixelShift [private]

TInt iPixelsPerWord

TInt iPixelsPerWord [private]

TPoint iPosition

TPoint iPosition [private]

TInt iScanlineWordLength

TInt iScanlineWordLength [private]

TSize iSize

TSize iSize [private]

TBool iWordAccess

TBool iWordAccess [private]