資源簡介
打開圖片,顯示直方圖,MFC界面,
圖像處理方面學習的好例子

代碼片段和文件信息
//?ImageTJ.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“ImageTJ.h“
#include?“MainFrm.h“
#include?“ImageTJDoc.h“
#include?“ImageTJView.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CImageTJApp
BEGIN_MESSAGE_MAP(CImageTJApp?CWinApp)
//{{AFX_MSG_MAP(CImageTJApp)
ON_COMMAND(ID_APP_ABOUT?OnAppAbout)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code!
//}}AFX_MSG_MAP
//?Standard?file?based?document?commands
ON_COMMAND(ID_FILE_NEW?CWinApp::OnFileNew)
ON_COMMAND(ID_FILE_OPEN?CWinApp::OnFileOpen)
//?Standard?print?setup?command
ON_COMMAND(ID_FILE_PRINT_SETUP?CWinApp::OnFilePrintSetup)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CImageTJApp?construction
CImageTJApp::CImageTJApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CImageTJApp?object
CImageTJApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CImageTJApp?initialization
BOOL?CImageTJApp::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
//?Change?the?registry?key?under?which?our?settings?are?stored.
//?TODO:?You?should?modify?this?string?to?be?something?appropriate
//?such?as?the?name?of?your?company?or?organization.
SetRegistryKey(_T(“Local?AppWizard-Generated?Applications“));
LoadStdProfileSettings();??//?Load?standard?INI?file?options?(including?MRU)
//?Register?the?application‘s?document?templates.??Document?templates
//??serve?as?the?connection?between?documents?frame?windows?and?views.
CSingleDocTemplate*?pDocTemplate;
pDocTemplate?=?new?CSingleDocTemplate(
IDR_MAINframe
RUNTIME_CLASS(CImageTJDoc)
RUNTIME_CLASS(CMainframe)???????//?main?SDI?frame?window
RUNTIME_CLASS(CImageTJView));
AddDocTemplate(pDocTemplate);
//?Parse?command?line?for?standard?shell?commands?DDE?file?open
CCommandLineInfo?cmdInfo;
ParseCommandLine(cmdInfo);
//?Dispatch?commands?specified?on?the?command?line
if?(!ProcessShellCommand(cmdInfo))
return?FALSE;
//?The?one?and?only?window?has?been?initialized?so?show?and?update?it.
m_pMainWnd->ShowWindow(SW_SHOW);
m_pMainWnd->UpdateWindow();
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄??????????0??2008-10-10?11:59??ImageTJ
?????目錄??????????0??2008-10-10?12:59??ImageTJ\ImageTJ
?????文件?????433976??2008-09-20?23:52??ImageTJ\ImageTJ\20080.bmp
?????目錄??????????0??2008-10-10?12:02??ImageTJ\ImageTJ\Debug
?????文件?????139351??2008-10-18?19:29??ImageTJ\ImageTJ\Debug\ImageTJ.exe
?????文件????5499464??2008-10-10?12:02??ImageTJ\ImageTJ\Debug\ImageTJ.pch
?????文件?????582656??2008-10-18?19:29??ImageTJ\ImageTJ\Debug\ImageTJ.pdb
?????文件???????7760??2008-10-18?19:29??ImageTJ\ImageTJ\Debug\ImageTJ.res
?????文件??????36404??2008-10-10?12:02??ImageTJ\ImageTJ\Debug\ImageTJDoc.obj
?????文件??????29596??2008-10-10?12:02??ImageTJ\ImageTJ\Debug\MainFrm.obj
?????文件??????43783??2008-10-10?12:02??ImageTJ\ImageTJ\Debug\PROGRESSBAR.obj
?????文件?????105565??2008-10-10?12:02??ImageTJ\ImageTJ\Debug\StdAfx.obj
?????文件?????345088??2008-10-18?19:30??ImageTJ\ImageTJ\Debug\vc60.idb
?????文件?????372736??2008-10-18?19:25??ImageTJ\ImageTJ\Debug\vc60.pdb
?????文件?????598732??2008-10-18?19:29??ImageTJ\ImageTJ\Debug\ImageTJ.ilk
?????文件??????32886??2008-10-17?22:07??ImageTJ\ImageTJ\Debug\ImageTJ.obj
?????文件??????42240??2008-10-18?19:22??ImageTJ\ImageTJ\Debug\ImageTJView.obj
?????文件??????25110??2008-10-18?19:25??ImageTJ\ImageTJ\Debug\ZFT.obj
?????文件???????1848??2006-02-06?16:41??ImageTJ\ImageTJ\DIBAPI.H
?????目錄??????????0??2006-11-09?16:56??ImageTJ\ImageTJ\DLL
?????目錄??????????0??2006-11-09?16:56??ImageTJ\ImageTJ\DLL\debug
?????文件?????131134??2006-05-24?22:48??ImageTJ\ImageTJ\DLL\debug\IOMfcImage.dll
?????文件???????8094??2006-05-24?22:48??ImageTJ\ImageTJ\DLL\debug\IOMfcImage.lib
?????目錄??????????0??2006-11-09?16:56??ImageTJ\ImageTJ\DLL\release
?????文件??????36864??2006-10-12?09:16??ImageTJ\ImageTJ\DLL\release\ImageTJ.exe
?????文件??????40960??2006-05-24?23:17??ImageTJ\ImageTJ\DLL\release\IOMfcImage.dll
?????文件???????8094??2006-05-24?23:17??ImageTJ\ImageTJ\DLL\release\IOMfcImage.lib
?????文件???????2999??2008-10-18?19:25??ImageTJ\ImageTJ\ZFT.cpp
?????文件???????2933??2008-10-18?19:31??ImageTJ\ImageTJ\ImageTJ.clw
?????文件???????4227??2008-10-17?21:22??ImageTJ\ImageTJ\ImageTJ.cpp
............此處省略35個文件信息
評論
共有 條評論