javauis/eswt_akn/org.eclipse.ercp.swt.s60/native/inc/imagescaler.h
branchRCL_3
changeset 60 6c158198356e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/javauis/eswt_akn/org.eclipse.ercp.swt.s60/native/inc/imagescaler.h	Thu Aug 19 09:48:13 2010 +0300
@@ -0,0 +1,39 @@
+/*******************************************************************************
+ * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ *     Nokia Corporation - S60 implementation
+ *******************************************************************************/
+
+#ifndef IMAGESCALER_H
+#define IMAGESCALER_H
+
+class CBitmapScaler;
+
+NONSHARABLE_CLASS(CImageScaler)
+        : public CActive
+{
+public:
+    static CImageScaler* NewL();
+    ~CImageScaler();
+    void Scale(CFbsBitmap& aSrcBitmap, CFbsBitmap& aDestBitmap, TBool aKeepAspectRatio);
+
+protected:
+    void RunL();
+    void DoCancel();
+
+private:
+    CImageScaler();
+    void ConstructL();
+
+private:
+    CActiveSchedulerWait* iWait;
+    CBitmapScaler* iBitmapScaler;
+};
+
+
+#endif // IMAGESCALER_H