javauis/eswt_akn/org.eclipse.ercp.swt.s60/native/inc/imagescaler.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 19 Aug 2010 09:48:13 +0300
branchRCL_3
changeset 24 6c158198356e
permissions -rw-r--r--
Revision: v2.2.9 Kit: 201033

/*******************************************************************************
 * 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