TImageBitmapUtil Class Reference

class TImageBitmapUtil

Bitmap utility class.

Nested Classes and Structures

Constructor & Destructor Documentation

TImageBitmapUtil()

IMPORT_CTImageBitmapUtil()

Default constructor for this class.

Member Functions Documentation

Begin()

IMPORT_C voidBegin()

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 TBoolBegin(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 & aPositionThe position to move to.

End()

IMPORT_C voidEnd()

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

SetBitmapL(CFbsBitmap *)

IMPORT_C voidSetBitmapL(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 * aBitmapA pointer to the bitmap.

SetPixel(TUint32)

IMPORT_C voidSetPixel(TUint32aPixelIndex)

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

Post-condition
The current position is updated.

Parameters

TUint32 aPixelIndexThe pixel index.

SetPixels(TUint32 *, TInt)

IMPORT_C voidSetPixels(TUint32 *aPixelIndex,
TIntaNumberOfPixels
)

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 * aPixelIndexA pointer to the first element in the array.
TInt aNumberOfPixelsThe number of elements in the array.

SetPos(const TPoint &)

IMPORT_C TBoolSetPos(const TPoint &aPosition)

Sets the current position in the bitmap to aPosition.

Parameters

const TPoint & aPositionThe 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]