Location:
gdi.h
Link against: N/A
CBitmapDevice
Supported from 5.0
Defines an interface for the capabilities and attributes of a bitmapped graphics device.
|
Defined in CBitmapDevice
:
AddFile()
, CreateBitmapContext()
, FontHeightInPixels()
, GetNearestFontInPixels()
, GetPixel()
, GetScanLine()
, RemoveFile()
Inherited from CBase
:
operator new()
Inherited from CGraphicsDevice
:
CreateContext()
,
DisplayMode()
,
FontHeightInTwips()
,
GetPalette()
,
NumTypefaces()
,
PaletteAttributes()
,
SetPalette()
,
SizeInPixels()
,
SizeInTwips()
,
TypefaceSupport()
Inherited from MGraphicsDeviceMap
:
GetNearestFontInTwips()
,
HorizontalPixelsToTwips()
,
HorizontalTwipsToPixels()
,
PixelsToTwips()
,
ReleaseFont()
,
TwipsToPixels()
,
VerticalPixelsToTwips()
,
VerticalTwipsToPixels()
TInt CreateBitmapContext(CBitmapContext*& aGC);
Creates a bitmap context for this bitmap device.
|
|
virtual void GetPixel(TRgb& aColor,const TPoint& aPixel) const=0;
Gets the RGB colour of an individual pixel on a bitmapped graphics device.
This pure virtual function is implemented in derived classes.
|
virtual void GetScanLine(TDes8& aBuf,const TPoint& aStartPixel,TInt aLength,TDisplayMode aDispMode) const=0;
Copies a scanline into a buffer.
The pixels are converted from the display mode format on the bitmapped graphics device to the format of the specified device display mode.
By specifying the start pixel and the number of pixels, either the whole or a portion of a bitmapped graphics device pixel row may be copied.
This pure virtual function is implemented in derived classes.
|
virtual TInt AddFile(const TDesC& aName,TInt& aId)=0;
Adds a font file to the device’s font store.
This pure virtual function is implemented in derived classes.
|
|
virtual void RemoveFile(TInt aId=0)=0;
Removes a font file from the font store.
This pure virtual function is implemented in derived classes.
|
virtual TInt FontHeightInPixels(TInt aTypefaceIndex,TInt aHeightIndex) const=0;
Gets the height, in pixels, of the specified typeface at one of its defined heights.
The typeface is identified by by an index. For a given typeface, there are a discrete number of heights; the specific height is also identified by an index.
The value returned is rounded up or down to the nearest font height in pixels.
This pure virtual function is implemented in derived classes.
|
|
virtual TInt GetNearestFontInPixels(CFont*& aFont,const TFontSpec& aFontSpec)=0;
Gets the nearest font to that specified for use by a bitmapped graphics device.
The font and bitmap server returns a pointer to the nearest matching font from those available.
This pure virtual function is implemented in derived classes.
|
|