📄 imagehelper.h
字号:
/*
============================================================================
Name : ImageHelper.h
Author :
Version : 1.0
Copyright : Your copyright notice
Description : CImageHelper declaration
============================================================================
*/
#ifndef IMAGEHELPER_H
#define IMAGEHELPER_H
#include <e32base.h> // For CActive, link against: euser.lib
#include <e32std.h> // For RTimer, link against: euser.lib
#include <f32file.h>
#include <fbs.h>
#include <ImageConversion.h>
class CImageHelper : public CActive
{
public:
// Cancel and destroy
~CImageHelper();
// Two-phased constructor.
static CImageHelper* NewL(RFs& aFs);
// Two-phased constructor.
static CImageHelper* NewLC(RFs& aFs);
public:
void LoadPngImageL(const TDesC& aFileName, CFbsBitmap& aBitmap, CFbsBitmap& aBitmapMask);
private:
// C++ constructor
CImageHelper(RFs& aFs);
// Second-phase constructor
void ConstructL();
private:
// From CActive
// Handle completion
void RunL();
// How to cancel me
void DoCancel();
// Override to handle leaves from RunL(). Default implementation causes
// the active scheduler to panic.
TInt RunError(TInt aError);
private:
RFs& iFs;
CActiveSchedulerWait* iActiveSchedulerWait;
CImageDecoder* iImgDecoder;
};
#endif // IMAGEHELPER_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -