資源簡介
VC++ MFC 數字圖像處理,BMP圖片的打開與保存源代碼,非常適合初學者,VC6.0的編譯環境。

代碼片段和文件信息
//?Image.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“Image.h“
#include?“ImageDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CImageApp
BEGIN_MESSAGE_MAP(CImageApp?CWinApp)
//{{AFX_MSG_MAP(CImageApp)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code!
//}}AFX_MSG
ON_COMMAND(ID_HELP?CWinApp::onhelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CImageApp?construction
CImageApp::CImageApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CImageApp?object
CImageApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CImageApp?initialization
BOOL?CImageApp::InitInstance()
{
AfxEnableControlContainer();
//?Standard?initialization
//?If?you?are?not?using?these?features?and?wish?to?reduce?the?size
//??of?your?final?executable?you?should?remove?from?the?following
//??the?specific?initialization?routines?you?do?not?need.
#ifdef?_AFXDLL
Enable3dControls(); //?Call?this?when?using?MFC?in?a?shared?DLL
#else
Enable3dControlsStatic(); //?Call?this?when?linking?to?MFC?statically
#endif
CImageDlg?dlg;
m_pMainWnd?=?&dlg;
int?nResponse?=?dlg.DoModal();
if?(nResponse?==?IDOK)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?OK
}
else?if?(nResponse?==?IDCANCEL)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?Cancel
}
//?Since?the?dialog?has?been?closed?return?FALSE?so?that?we?exit?the
//??application?rather?than?start?the?application‘s?message?pump.
return?FALSE;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????110667??2014-11-07?21:24??image\Image\Debug\Image.exe
?????文件?????202488??2014-11-07?21:24??image\Image\Debug\Image.ilk
?????文件??????12990??2014-10-14?16:32??image\Image\Debug\Image.obj
?????文件????5492816??2014-10-13?21:05??image\Image\Debug\Image.pch
?????文件?????369664??2014-11-07?21:24??image\Image\Debug\Image.pdb
?????文件???????2188??2014-10-14?16:32??image\Image\Debug\Image.res
?????文件??????23696??2014-11-07?21:24??image\Image\Debug\ImageDlg.obj
?????文件?????105657??2014-10-13?21:05??image\Image\Debug\StdAfx.obj
?????文件?????205824??2014-11-07?21:24??image\Image\Debug\vc60.idb
?????文件?????364544??2014-11-07?21:24??image\Image\Debug\vc60.pdb
?????文件??????34768??2014-10-14?16:32??image\Image\Image.aps
?????文件????????768??2014-11-07?21:24??image\Image\Image.clw
?????文件???????2049??2014-10-13?20:22??image\Image\Image.cpp
?????文件???????4141??2014-10-13?20:22??image\Image\Image.dsp
?????文件????????516??2014-10-13?22:26??image\Image\Image.dsw
?????文件???????1313??2014-10-13?20:22??image\Image\Image.h
?????文件??????58368??2014-11-07?21:24??image\Image\Image.ncb
?????文件??????55808??2014-11-07?21:24??image\Image\Image.opt
?????文件????????517??2014-11-07?21:24??image\Image\Image.plg
?????文件???????4543??2014-10-14?16:32??image\Image\Image.rc
?????文件???????4125??2014-11-04?16:34??image\Image\ImageDlg.cpp
?????文件???????1330??2014-10-14?16:23??image\Image\ImageDlg.h
?????文件???????3561??2014-10-13?20:22??image\Image\ReadMe.txt
?????文件???????1078??2014-10-13?20:22??image\Image\res\Image.ico
?????文件????????397??2014-10-13?20:22??image\Image\res\Image.rc2
?????文件????????637??2014-10-14?16:32??image\Image\resource.h
?????文件????????207??2014-10-13?20:22??image\Image\StdAfx.cpp
?????文件???????1054??2014-10-13?20:22??image\Image\StdAfx.h
?????目錄??????????0??2014-11-07?21:24??image\Image\Debug
?????目錄??????????0??2014-10-13?20:22??image\Image\res
............此處省略5個文件信息
評論
共有 條評論