data.cpp

来自「又VC++实现的基于TWAIN的扫描仪图像输入处理软件」· C++ 代码 · 共 36 行

CPP
36
字号
// Data.cpp: implementation of the CData class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "source10.h"
#include "Data.h"
#include "const.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CData::CData() : m_szLogImageSize(LOG_IMAGEX,LOG_IMAGEY),
				 m_szViewWndSize (0,0),
				 m_rtSelection (0,0,0,0),
				 m_szScanFrame (SCAN_FRAMEX, SCAN_FRAMEY)
{
	m_ptPaintOrg.x = 0;
	m_ptPaintOrg.y = 0;
	//初始缩小比例为8倍
	m_nZoomFactor  = 8; 
	m_bPreviewLoaded = FALSE;
}

CData::~CData()
{

}

⌨️ 快捷键说明

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