Location:
w32std.h
Link against: ws32.lib
CWsBitmap
Supported from 5.0
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.
|
Defined in CWsBitmap:
CWsBitmap(), Create(), Duplicate(), InternalizeL(), Load(), Reset(), ~CWsBitmap()
Inherited from CBase:
operator new()
Inherited from CFbsBitmap:
DataAddress(),
DisplayMode(),
ExternalizeL(),
ExternalizeRectangleL(),
GetPalette(),
GetPixel(),
GetScanLine(),
GetVerticalScanLine(),
Handle(),
Header(),
HorizontalPixelsToTwips(),
HorizontalTwipsToPixels(),
IsFileInRom(),
IsLargeBitmap(),
IsMonochrome(),
IsRomBitmap(),
PaletteAttributes(),
Resize(),
Save(),
ScanLineLength(),
SetPalette(),
SetScanLine(),
SetSizeInTwips(),
SizeInPixels(),
SizeInTwips(),
StoreL(),
VerticalPixelsToTwips(),
VerticalTwipsToPixels()
Inherited from MWsClientClass:
WsHandle()
CWsBitmap(RWsSession &aWs);
Constructor which takes a window server session as an argument.
|
TInt Create(const TSize& aSizeInPixels, TDisplayMode aDispMode);
Creates a bitmap, specifying size and display mode
|
|
TInt Duplicate(TInt aHandle);
Make this bitmap a duplicate of the specified bitmap.
|
|
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.
|
TInt Load(const TDesC& aFileName,TInt32 aId,TBool aShareIfLoaded=ETrue);
Loads a specified bitmap from file.
If aShareIfLoaded is ETrue the bitmap
will be allowed to be shared by a number of font and bitmap server
clients.
|
|
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.