equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2010 Ixonos Plc. |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the "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 * Ixonos Plc |
|
14 * |
|
15 * Description: |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef __CFILTERJPEGTARGET_H__ |
|
21 #define __CFILTERJPEGTARGET_H__ |
|
22 |
|
23 #include <e32base.h> |
|
24 #include "MImageFilter.h" |
|
25 #include "TBitmapHandle.h" |
|
26 |
|
27 class MJpegSave; |
|
28 |
|
29 class CFilterJpegTarget |
|
30 : public CBase |
|
31 , public MImageFilter |
|
32 { |
|
33 public: |
|
34 IMPORT_C static TInt Create(); |
|
35 virtual ~CFilterJpegTarget(); |
|
36 |
|
37 private: |
|
38 static CFilterJpegTarget* NewL(); |
|
39 CFilterJpegTarget(); |
|
40 void ConstructL(); |
|
41 |
|
42 public: // MImageFilter |
|
43 virtual TRect Rect(); |
|
44 virtual TReal Scale(); |
|
45 virtual TSize ViewPortSize(); |
|
46 virtual TBlock * GetBlockL ( const TRect & aRect ); |
|
47 virtual void SetParent( MImageFilter* aParent ); |
|
48 virtual void SetChild( MImageFilter* aChild ); |
|
49 virtual TInt CmdL( const TDesC16& aCmd ); |
|
50 virtual const char* Type(); |
|
51 |
|
52 private: // Data |
|
53 |
|
54 |
|
55 TRect iRect; |
|
56 TSize iSize; |
|
57 |
|
58 MJpegSave* iJpegSave; |
|
59 |
|
60 TBitmapHandle iBm; |
|
61 TInt iBlockWidth; |
|
62 TInt iBlockHeight; |
|
63 TInt iBlockY; |
|
64 TFileName iFileName; |
|
65 |
|
66 RFs iFs; |
|
67 RFile iFile; |
|
68 |
|
69 }; |
|
70 |
|
71 #endif |