|
1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @test |
|
19 @internalComponent - Internal Symbian test code |
|
20 */ |
|
21 |
|
22 #ifndef __GRAPHICSIMAGECOMPARISON_H__ |
|
23 #define __GRAPHICSIMAGECOMPARISON_H__ |
|
24 |
|
25 #include <e32std.h> |
|
26 #include <w32std.h> |
|
27 |
|
28 class CTGraphicsImageComparison : public CBase |
|
29 { |
|
30 public: |
|
31 IMPORT_C static TInt CompareBitmaps(const TSize& aCompareSize, |
|
32 const TPoint& aBitmap1Point, |
|
33 const TPoint& aBitmap2Point, |
|
34 const CFbsBitmap& aBitmap1, |
|
35 const CFbsBitmap& aBitmap2, |
|
36 const TUint32 aComparisonMask = 0xFFFFFFFF); |
|
37 |
|
38 IMPORT_C static TInt CompareBitmaps(const TSize& aCompareSize, |
|
39 const TPoint& aBitmapPoint, |
|
40 const CFbsBitmap& aBitmap, |
|
41 const TRgb& aColour, |
|
42 const TUint32 aComparisonMask = 0xFFFFFFFF); |
|
43 private: |
|
44 static TInt CheckArguments(const TSize& aCompareSize, |
|
45 const TPoint& aBitmap1Point, |
|
46 const TPoint& aBitmap2Point, |
|
47 const CFbsBitmap& aBitmap1, |
|
48 const CFbsBitmap& aBitmap2); |
|
49 |
|
50 static TInt CheckArgumentBitmap(const TSize& aCompareSize, |
|
51 const TPoint& aPoint, |
|
52 const CFbsBitmap& aBitmap); |
|
53 }; |
|
54 |
|
55 #endif //__GRAPHICSIMAGECOMPARISON_H__ |