Location:
GraphicsAccelerator.h
class TAcceleratedBitmapSpec;
A utility class that provides access to the contents of a bitmap.
The bitmap can be a hardware bitmap (RHardwareBitmap
), or an ordinary bitmap (CFbsBitmap
). An object of this class is used as a parameter by several accelerated graphics operations, e.g. TGopBitBlt
, to specify the source bitmap for the operation.
Defined in TAcceleratedBitmapSpec
:
EBitmapIsStatic
, EBitmapNeedsLocking
, EFbsBitmap
, EHardwareBitmap
, ENoBitmap
, GetInfo()
, Handle()
, Lock()
, Lock()
, TAcceleratedBitmapLock
, TAcceleratedBitmapSpec()
, TAcceleratedBitmapSpec()
, TAcceleratedBitmapSpec()
, TAcceleratedBitmapType
, Type()
, Unlock()
inline TAcceleratedBitmapSpec();
Default constructor. Use one of the other constructor overloads instead.
IMPORT_C TAcceleratedBitmapSpec(RHardwareBitmap aBitmap);
|
IMPORT_C TInt GetInfo(TAcceleratedBitmapInfo &aInfo) const;
|
|
inline void Lock(TBitmapLockCount &aCount);
Prevents a bitmap from moving in memory. Lock()
should be called before accessing the bitmap and Unlock()
immediately afterwards. Although it is not necessary to lock and unlock some types of bitmap, it is a small overhead, and
it is recommended that you always do it.
If a bitmap is already locked, all uses of the Lock()
and Unlock()
methods within the same thread must use the same TBitmapLockCount
object, even if Lock()
and Unlock()
are called by different instances of TAcceleratedBitmapSpec.
|
inline void Lock(TBitmapLockCount &aCount, TAcceleratedBitmapInfo &aInfo);
Prevents a bitmap from moving in memory. Lock()
should be called before accessing the bitmap and Unlock()
immediately afterwards. Although it is not necessary to lock and unlock some types of bitmap, it is a small overhead, and
it is recommended that you always do it. Also updates a TAcceleratedBitmapInfo
structure with any information that may have changed, (typically the bitmap's memory address).
If a bitmap is already locked, all uses of the Lock()
and Unlock()
methods within the same thread must use the same TBitmapLockCount
object, even if Lock()
and Unlock()
are called by different instances of TAcceleratedBitmapSpec.
|
inline void Unlock(TBitmapLockCount &aCount);
Frees a bitmap after a call to Lock()
. A call to Unlock()
must be made for each corresponding call to Lock()
. This function should be called as soon as any bitmap access has finished. If, after the Unlock()
operation, no more calls to Lock()
are outstanding on the bitmap, the bitmap is free to be moved in memory again.
If a bitmap is already locked, all uses of the Lock()
and Unlock()
methods within the same thread must use the same TBitmapLockCount
object, even if Lock()
and Unlock()
are called by different instances of TAcceleratedBitmapSpec.
|
inline TAcceleratedBitmapType Type() const;
Returns the type of the bitmap. The type is assigned during construction.
|
inline TInt Handle() const;
Returns the handle to the bitmap.
|
TAcceleratedBitmapType
Identifies the type of the bitmap.
Type()
returns this value.
|