CFbsColor256BitmapUtil Class Reference
class CFbsColor256BitmapUtil : public CBase
|
Copies a bitmap in any display mode of at least 256 colours into a 256 colour bitmap, optionally using a user-defined palette.
Constructor & Destructor Documentation
CFbsColor256BitmapUtil()
CFbsColor256BitmapUtil
|
(
|
)
|
[private, inline]
|
~CFbsColor256BitmapUtil()
~CFbsColor256BitmapUtil
|
(
|
)
|
|
Member Functions Documentation
CopyBitmap(CFbsBitmap *, CFbsBitmap *, TDither)
Copies the contents of a source bitmap to a destination 256 colour bitmap. Both bitmaps must be the same size and the destination bitmap's display mode must be EColor256.
-
panic
-
EFbsColor256UtilError Either aColor256Destination's display mode is not EColor256, or the two bitmaps are not the same size.
Parameters
CFbsBitmap
* aColor256Destination
|
The destination to copy the bitmap to. Its display mode must be EColor256.
|
CFbsBitmap
* aSource
|
The source bitmap to copy from. Its display mode can be EColor16M, EColor64K, EColor4K or EColor256.
|
TDither
aDither = ENoDither
|
Specify EFloydSteinberg for Floyd-Steinberg dithering. By default, no dithering.
|
NewL(const CPalette *)
Allocates and constructs a new 256 colour bitmap utility object, optionally specifying a palette.
Parameters
const
CPalette
* aPalette
|
The palette of colours to use for the destination 256 colour bitmap. If there are more than 256 colours in the palette, only the first 256 are used. May be NULL, in which case the system default 256 colour palette is used.
|
Member Enumerations Documentation
Enum TDither
Indicates whether or not to use dithering.
Enumerators
ENoDither
|
No dithering.
|
EFloydSteinberg
|
Use the Floyd-Steinberg dithering algorithm.
|
Member Data Documentation
TColor256Util * iColor256Util
CDitherColor256 * iDither
CDitherColor256 *
|
iDither
|
[private]
|
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.