MIHLBitmap Class Reference
Public Member Functions |
---|
| ~MIHLBitmap() |
const CFbsBitmap & | Bitmap() |
TInt
| Copy(const CFbsBitmap &, TBool) |
TInt
| Copy(const CFbsBitmap &, const CFbsBitmap &, TBool) |
TInt
| Copy(const MIHLBitmap &, TBool) |
TInt
| Create(const TSize &, TDisplayMode) |
TInt
| Create(const TSize &, TDisplayMode, TDisplayMode) |
void | Draw(CBitmapContext &, const TPoint &) |
void | Draw(CBitmapContext &, const TPoint &, const TRect &) |
TBool
| HasMask() |
TBool
| IsCreated() |
const CFbsBitmap & | Mask() |
void | Reset() |
Constructor & Destructor Documentation
~MIHLBitmap()
~MIHLBitmap | ( | ) | [inline, virtual] |
Member Functions Documentation
Copy(const CFbsBitmap &, TBool)
Copy or duplicate bitmap. Copied bitmap has unique server handle and it can be modified without risk of changes in given source bitmap. Duplicated bitmap has same server handle than source bitmap and modifying duplicated bitmap will also modify source bitmap.
- Since
- 3.0
Parameters
const CFbsBitmap & aBitmap | Source bitmap that is copied or duplicated. |
TBool aDuplicate | ETrue to duplicate, EFalse to copy. |
Copy(const CFbsBitmap &, const CFbsBitmap &, TBool)
Copy or duplicate bitmap and mask. Copied bitmaps has unique server handles and they can be modified without risk of changes in given source bitmaps. Duplicated bitmaps has same server handles than source bitmaps and modifying duplicated bitmaps will also modify source bitmaps.
- Since
- 3.0
Parameters
const CFbsBitmap & aBitmap | Source aMask that is copied or duplicated. |
const CFbsBitmap & aMask | |
TBool aDuplicate | ETrue to duplicate, EFalse to copy. |
Copy(const MIHLBitmap &, TBool)
Copy or duplicate
MIHLBitmap. Copied bitmaps has unique server handles and they can be modified without risk of changes in given source bitmaps. Duplicated bitmaps has same server handles than source bitmaps and modifying duplicated bitmaps will also modify source bitmaps.
- Since
- 3.0
Parameters
const MIHLBitmap & aBitmap | Source MIHLBitmap that is copied or duplicated. |
TBool aDuplicate | ETrue to duplicate, EFalse to copy. |
Create(const TSize &, TDisplayMode)
Create new bitmap.
- Since
- 3.0
Create(const TSize &, TDisplayMode, TDisplayMode)
Create new bitmap and mask.
- Since
- 3.0
Parameters
const TSize & aSize | Bitmap and mask size. |
TDisplayMode aBitmapDisplayMode | Bitmap displaymode. |
TDisplayMode aMaskDisplayMode | Mask displaymode (EGray2 or EGray256) |
Draw(CBitmapContext &, const TPoint &)
Draw bitmap to bitmap context. If bitmaps are not created, method does nothing.
- Since
- 3.0
Draw(CBitmapContext &, const TPoint &, const TRect &)
Draw bitmap to bitmap context. If bitmaps are not created, method does nothing.
- Since
- 3.0
Parameters
CBitmapContext & aContext | Bitmap context where bitmap is drawn. |
const TPoint & aPoint | Draw position. |
const TRect & aSourceRect | Source rectangle that is drawn. |
HasMask()
TBool
| HasMask | ( | ) | const [pure virtual] |
Check if mask bitmap handle is valid and exist.
- Since
- 3.0
IsCreated()
TBool
| IsCreated | ( | ) | const [pure virtual] |
Check if bitmap is created or copied. This checks that bitmap handle is valid and exist.
- Since
- 3.0
Reset()
void | Reset | ( | ) | [pure virtual] |
Release bitmap and mask server handles.
Create() and
Copy() methods will call this automatically if any old bitmaps exist.
- Since
- 3.0
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.