equal
deleted
inserted
replaced
|
1 /******************************************************************************* |
|
2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. This program and the accompanying materials |
|
4 * are made available under the terms of the Eclipse Public License v1.0 |
|
5 * which accompanies this distribution, and is available at |
|
6 * http://www.eclipse.org/legal/epl-v10.html |
|
7 * |
|
8 * Contributors: |
|
9 * Nokia Corporation - S60 implementation |
|
10 *******************************************************************************/ |
|
11 |
|
12 #ifndef IMAGESCALER_H |
|
13 #define IMAGESCALER_H |
|
14 |
|
15 class CBitmapScaler; |
|
16 |
|
17 NONSHARABLE_CLASS(CImageScaler) |
|
18 : public CActive |
|
19 { |
|
20 public: |
|
21 static CImageScaler* NewL(); |
|
22 ~CImageScaler(); |
|
23 void Scale(CFbsBitmap& aSrcBitmap, CFbsBitmap& aDestBitmap, TBool aKeepAspectRatio); |
|
24 |
|
25 protected: |
|
26 void RunL(); |
|
27 void DoCancel(); |
|
28 |
|
29 private: |
|
30 CImageScaler(); |
|
31 void ConstructL(); |
|
32 |
|
33 private: |
|
34 CActiveSchedulerWait* iWait; |
|
35 CBitmapScaler* iBitmapScaler; |
|
36 }; |
|
37 |
|
38 |
|
39 #endif // IMAGESCALER_H |