又VC++实现的基于TWAIN的扫描仪图像输入处理软件
源代码在线查看: data.cpp
// 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()
{
}