graphicscontrol.h

来自「symbian 图像开发 绘制png jpeg bmp gif 等 多种」· C头文件 代码 · 共 44 行

H
44
字号
// GraphicsControl.h
//
// Copyright (c) 2000 Symbian Ltd.  All rights reserved.

#ifndef __GraphicsControl_H
#define __GraphicsControl_H

#include <coecntrl.h>
#include <s32file.h>
#include "CommonGraphicsControlFramework.h"

// sundry derived classes


class CDrawControl : public CGraphicExampleControl
	{
public:
	CDrawControl() { SetMaxPhases(26); };
	void UpdateModelL();
	void Draw(const TRect& aRect) const;
	};

class CZoomControl : public CGraphicExampleControl
	{
public:
	CZoomControl() { SetMaxPhases(5); };
	~CZoomControl() { delete(iBitmap); };
	void UpdateModelL();
	void Draw(const TRect& aRect) const;
	void DrawLeft(TRect screenRect,CWindowGc& gc) const;
	void DrawRight(TRect screenRect,CWindowGc& gc) const;
private:
	void LoadBitmapL(CFbsBitmap* aBitMap,const TDesC& aPathAndFile,TInt aId,TBool aShareIfLoaded);
private:
	TZoomFactor iLeftZf;
	TZoomFactor iRightZf;
	MGraphicsDeviceMap* iLeftMap;
	MGraphicsDeviceMap* iRightMap;
	CFbsBitmap* iBitmap;
	};


#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?