class CFbsBitmapDevice : public CFbsDevice |
A graphics device to which a bitmap managed by the font and bitmap server can be drawn.
The class specialises the bitmap graphics device interface CBitmapDevice for drawing to in-memory bitmaps.
Public Member Functions | |
---|---|
~CFbsBitmapDevice() | |
IMPORT_C void | DrawingBegin(TBool) |
IMPORT_C void | DrawingEnd(TBool) |
IMPORT_C TInt | GetPalette(CPalette *&) |
IMPORT_C void | GetPixel(TRgb &, const TPoint &) |
IMPORT_C void | GetScanLine(TDes8 &, const TPoint &, TInt, TDisplayMode) |
IMPORT_C TInt | HorizontalPixelsToTwips(TInt) |
IMPORT_C TInt | HorizontalTwipsToPixels(TInt) |
IMPORT_C CFbsBitmapDevice * | NewL(CFbsBitmap *) |
IMPORT_C CFbsBitmapDevice * | NewL(CFbsBitmap *, const TDesC &) |
IMPORT_C void | PaletteAttributes(TBool &, TInt &) |
IMPORT_C TInt | Resize(const TSize &) |
IMPORT_C void | SetPalette(CPalette *) |
IMPORT_C TSize | SizeInTwips() |
IMPORT_C TInt | SwapWidthAndHeight() |
IMPORT_C TInt | VerticalPixelsToTwips(TInt) |
IMPORT_C TInt | VerticalTwipsToPixels(TInt) |
Private Member Functions | |
---|---|
CFbsBitmapDevice() | |
void | ConstructL(CFbsBitmap *) |
void | ConstructL(CFbsBitmap *, const TDesC &) |
void | SetBits() |
Private Attributes | |
---|---|
CFbsBitGcBitmap * | iFbsBmp |
void | ConstructL | ( | CFbsBitmap * | aFbsBitmap | ) | [private] |
CFbsBitmap * aFbsBitmap |
void | ConstructL | ( | CFbsBitmap * | aFbsBitmap, |
const TDesC & | aLibname | |||
) | [private] |
CFbsBitmap * aFbsBitmap | |
const TDesC & aLibname |
IMPORT_C void | DrawingBegin | ( | TBool | aAlways = EFalse | ) | [virtual] |
TBool aAlways = EFalse |
IMPORT_C void | DrawingEnd | ( | TBool | aAlways = EFalse | ) | [virtual] |
TBool aAlways = EFalse |
IMPORT_C TInt | GetPalette | ( | CPalette *& | aPalette | ) | const [virtual] |
Gets the device's current palette.
This function is only supported if the device has a modifiable palette, which can be determined by calling PaletteAttributes().
KErrNone, if successful; otherwise, another of the system-wide error codes.
CPalette *& aPalette | On return, holds the device's current palette. |
IMPORT_C void | GetPixel | ( | TRgb & | aColor, |
const TPoint & | aPixel | |||
) | const [virtual] |
Gets the RGB colour of an individual pixel on a bitmapped graphics device.
This pure virtual function is implemented in derived classes.
IMPORT_C void | GetScanLine | ( | TDes8 & | aBuf, |
const TPoint & | aStartPixel, | |||
TInt | aLength, | |||
TDisplayMode | aDispMode | |||
) | const [virtual] |
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.
TDes8 & aBuf | An 8 bit modifiable descriptor buffer into which pixels are copied; it must be sufficiently large to store all the scanline pixels. |
const TPoint & aStartPixel | The (x,y) co-ordinates of the first pixel of the bitmap scanline to be put into the buffer. |
TInt aLength | The number of pixels to put into the buffer. |
TDisplayMode aDispMode | The display mode into which to convert the pixels. |
IMPORT_C TInt | HorizontalPixelsToTwips | ( | TInt | aPixels | ) | const [virtual] |
TInt aPixels |
IMPORT_C TInt | HorizontalTwipsToPixels | ( | TInt | aTwips | ) | const [virtual] |
TInt aTwips |
IMPORT_C CFbsBitmapDevice * | NewL | ( | CFbsBitmap * | aFbsBitmap | ) | [static] |
CFbsBitmap * aFbsBitmap |
IMPORT_C CFbsBitmapDevice * | NewL | ( | CFbsBitmap * | aFbsBitmap, |
const TDesC & | aLibname | |||
) | [static] |
CFbsBitmap * aFbsBitmap | |
const TDesC & aLibname |
IMPORT_C void | PaletteAttributes | ( | TBool & | aModifiable, |
TInt & | aNumEntries | |||
) | const [virtual] |
Gets the palette attributes of the device.
IMPORT_C void | SetPalette | ( | CPalette * | aPalette | ) | [virtual] |
Sets the device's palette.
Setting the palette is only possible if the device has a modifiable palette, which can be determined by calling PaletteAttributes().
CPalette * aPalette | The new palette for the device. |
IMPORT_C TSize | SizeInTwips | ( | ) | const [virtual] |
Gets the size of the device area in twips.
The width and height of the device area, in twips
IMPORT_C TInt | VerticalPixelsToTwips | ( | TInt | aPixels | ) | const [virtual] |
TInt aPixels |
IMPORT_C TInt | VerticalTwipsToPixels | ( | TInt | aTwips | ) | const [virtual] |
TInt aTwips |