RHardwareBitmap Class Reference

class RHardwareBitmap

The interface to a hardware bitmap.

This is a bitmap that can be drawn to by graphics acceleration hardware. It is stored in a contiguous area of physical memory.

After creating the hardware bitmap, it can be passed to CHardwareGraphicsAccelerator::NewL().

CHardwareGraphicsAccelerator::NewL()

Public Member Functions
RHardwareBitmap()
RHardwareBitmap(TInt)
IMPORT_C TIntGetInfo(TAcceleratedBitmapInfo &)
Private Member Functions
IMPORT_C TIntCreate(TDisplayMode, TSize, TUid)
IMPORT_C voidDestroy()
IMPORT_C TIntSetAsScreenReference(TInt)
Public Attributes
TInt iHandle

Constructor & Destructor Documentation

RHardwareBitmap()

RHardwareBitmap()[inline]

Default constructor.

Default constructor. Initialises the handle to zero.

RHardwareBitmap(TInt)

RHardwareBitmap(TIntaHandle)[inline]

Constructor taking the handle of an existing RHardwareBitmap to duplicate it.

Constructor taking the handle of an existing RHardwareBitmap to duplicate.

Parameters

TInt aHandleThe RHardwareBitmap handle to duplicate.

Member Functions Documentation

Create(TDisplayMode, TSize, TUid)

IMPORT_C TIntCreate(TDisplayModeaDisplayMode,
TSizeaSize,
TUidaCreatorUid
)[private]

Parameters

TDisplayMode aDisplayMode
TSize aSize
TUid aCreatorUid

Destroy()

IMPORT_C voidDestroy()[private]

GetInfo(TAcceleratedBitmapInfo &)

IMPORT_C TIntGetInfo(TAcceleratedBitmapInfo &aInfo)const

Gets the information needed for accessing a bitmap directly into TAcceleratedBitmapInfo structure.

KErrNone if sucessful, otherwise one of the system error codes, including KErrUnknown if the object's type is ENoBitmap.

Parameters

TAcceleratedBitmapInfo & aInfoOn return, holds the information needed to directly access the bitmap.

SetAsScreenReference(TInt)

IMPORT_C TIntSetAsScreenReference(TIntaScreen = -1)[private]

Parameters

TInt aScreen = -1

Member Data Documentation

TInt iHandle

TInt iHandle

The bitmap's handle; assigned during construction. This is used to identify the bitmap.