equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CMIDBITMAPIMAGE_H |
|
19 #define CMIDBITMAPIMAGE_H |
|
20 |
|
21 #include <e32base.h> |
|
22 #include <lcdgr.h> |
|
23 |
|
24 class CLcdFbsImage; |
|
25 class CFbsBitmap; |
|
26 class CBitmapContext; |
|
27 class TPoint; |
|
28 class TRect; |
|
29 |
|
30 /** |
|
31 * Bridge to MMIDBitmapImage. |
|
32 * |
|
33 */ |
|
34 NONSHARABLE_CLASS(CMIDBitmapImage) : public CBase, public MMIDBitmapImage |
|
35 { |
|
36 public: |
|
37 CMIDBitmapImage(CLcdFbsImage& aImageRep); |
|
38 ~CMIDBitmapImage(); |
|
39 |
|
40 public: |
|
41 /* MMIDBitmapImage interface */ |
|
42 void AddRef(); |
|
43 void RemoveRef(); |
|
44 CFbsBitmap* ColorBitmap() const; |
|
45 CFbsBitmap* AlphaBitmap() const; |
|
46 CFbsBitmap* CreateColorBitmapL(TDisplayMode aMode) const; |
|
47 CFbsBitmap* CreateAlphaBitmapL(TDisplayMode aMode, TBool aInvert) const; |
|
48 CFbsBitmap* DuplicateColorBitmapL() const; |
|
49 CFbsBitmap* DuplicateAlphaBitmapL() const; |
|
50 void Draw(CBitmapContext& aContext, const TPoint& aPoint) const; |
|
51 void Draw(CBitmapContext& aContext, const TPoint& aPoint, const TRect& aRect) const; |
|
52 |
|
53 private: |
|
54 CLcdFbsImage& iImageRep; |
|
55 TInt iRefCount; |
|
56 }; |
|
57 |
|
58 #endif // CMIDBITMAPIMAGE_H |