Location:
W32STD.H
Link against: ws32.lib
class CWsBitmap : public CFbsBitmap, public MWsClientClass;
Window server bitmap.
This is a bitmap to which the window server already has a handle. Functions which take a window server bitmap are faster than
equivalent functions which take a CFbsBitmap
.
MWsClientClass
- Base class for all classes whose objects are clients of the window server
CBase
- Base class for all classes to be instantiated on the heap
CFbsBitmap
- Note that this class is not intended for user derivation
CWsBitmap
- Window server bitmap
Defined in CWsBitmap
:
CWsBitmap()
, CWsBitmap()
, Create()
, Duplicate()
, InternalizeL()
, Load()
, Reset()
, ~CWsBitmap()
Inherited from CBase
:
Delete()
,
Extension_()
,
operator new()
Inherited from CFbsBitmap
:
CleanAddress()
,
Compress()
,
CompressInBackground()
,
CreateHardwareBitmap()
,
DataAddress()
,
DisplayMode()
,
ExternalizeL()
,
ExternalizeRectangleL()
,
GetPalette()
,
GetPixel()
,
GetScanLine()
,
GetVerticalScanLine()
,
Handle()
,
HardwareBitmapHandle()
,
Header()
,
HorizontalPixelsToTwips()
,
HorizontalTwipsToPixels()
,
InitialDisplayMode()
,
IsCompressedInRAM()
,
IsFileInRom()
,
IsLargeBitmap()
,
IsMonochrome()
,
IsRomBitmap()
,
LoadAndCompress()
,
LockHeap()
,
LockHeapLC()
,
PaletteAttributes()
,
Resize()
,
Save()
,
ScanLineLength()
,
SetDisplayMode()
,
SetPalette()
,
SetRomBitmapL()
,
SetScanLine()
,
SetSizeInTwips()
,
SizeInPixels()
,
SizeInTwips()
,
StoreL()
,
SwapWidthAndHeight()
,
UnlockHeap()
,
VerticalPixelsToTwips()
,
VerticalTwipsToPixels()
Inherited from MWsClientClass
:
WsHandle()
IMPORT_C CWsBitmap();
Default constructor. Developers should use the other constructor overload.
IMPORT_C CWsBitmap(RWsSession &aWs);
Constructor which takes a window server session as an argument.
|
IMPORT_C TInt Create(const TSize &aSizeInPixels, TDisplayMode aDispMode);
Creates a bitmap, specifying the size and display mode.
This function, if successful, always causes a flush of the window server buffer.
|
|
IMPORT_C TInt Duplicate(TInt aHandle);
Makes this bitmap a duplicate of the specified bitmap.
This function, if successful, always causes a flush of the window server buffer.
|
|
IMPORT_C TInt Load(const TDesC &aFileName, TInt32 aId, TBool aShareIfLoaded=ETrue);
Loads a bitmap from a file.
If aShareIfLoaded is ETrue the bitmap will be allowed to be shared by a number of font and bitmap server clients.
This function, if successful, always causes a flush of the window server buffer.
|
|
IMPORT_C void InternalizeL(RReadStream &aStream);
Internalises a CWsBitmap from the read stream.
The presence of this function means that the standard templated operator>>()
can be used to internalise objects of this class.
This function always causes a flush of the window server buffer.
|
IMPORT_C void Reset();
Releases the bitmap's handle from the font and bitmap server.
The function also decrements the bitmap's access count in the font and bitmap server. The server-side bitmap is deleted only if the access count for the bitmap decrements to zero.