📄 biaofengxpic.h
字号:
/*
============================================================================
Name : XPic.h
Author :
Version :
Copyright : Your copyright notice
Description : CXPic declaration
============================================================================
*/
#ifndef XPIC_H
#define XPIC_H
// INCLUDES
#include <e32std.h>
#include <e32base.h>
#include <eikenv.h>
#include <MdaImageConverter.h>
// CLASS DECLARATION
/**
* CXPic
*
*/
class CXPic : public MMdaImageUtilObserver
{
public: // Constructors and destructor
~CXPic();
static CXPic* CreatL(TSize asize);
static CXPic* LoadL(const TDesC& path,const TDesC& name);
virtual void MiuoOpenComplete(TInt aError);
virtual void MiuoConvertComplete(TInt aError);
virtual void MiuoCreateComplete(TInt aError);
TInt GetWidth();
TInt GetHeight();
void Scale(TInt width,TInt height);
TBool IsLoadFin();
private:
CXPic();
void ConstructL(TSize asize);
void ConstructL(const TDesC& path,const TDesC& name);
friend class CXSurface;
// private:
public:
CMdaImageFileToBitmapUtility* m_iConverter;
CMdaBitmapScaler* m_iScaler;
CFbsBitmap* m_iBitmap;
CFbsBitmap* m_iBitmapMask;
TBool m_bIsLoadFinish;
TInt m_iWidth;
TInt m_iHeight;
TInt m_iNewWidth;
TInt m_iNewHeight;
};
#endif // XPIC_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -