-
大小: 5.21MB文件類型: .rar金幣: 2下載: 0 次發(fā)布日期: 2023-10-03
- 語言: 其他
- 標(biāo)簽:
資源簡介
獲取圖片每個像素點的rgb值 源碼 自己再封裝成類

代碼片段和文件信息
//?GetPixel2.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“GetPixel2.h“
#include?“GetPixel2Dlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CGetPixel2App
BEGIN_MESSAGE_MAP(CGetPixel2App?CWinApp)
//{{AFX_MSG_MAP(CGetPixel2App)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CGetPixel2App?construction
CGetPixel2App::CGetPixel2App()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CGetPixel2App?object
CGetPixel2App?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CGetPixel2App?initialization
BOOL?CGetPixel2App::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
CGetPixel2Dlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????62134??2004-12-25?09:10??像素rgb\bitmap1.bmp
?????文件??????62134??2004-12-25?09:10??像素rgb\Debug\bitmap1.bmp
?????文件?????188474??2012-03-06?15:43??像素rgb\Debug\GetPixel2.exe
?????文件?????269964??2012-03-06?15:43??像素rgb\Debug\GetPixel2.ilk
?????文件??????13762??2012-03-06?14:04??像素rgb\Debug\GetPixel2.obj
?????文件????5627264??2012-03-06?11:55??像素rgb\Debug\GetPixel2.pch
?????文件?????435200??2012-03-06?15:43??像素rgb\Debug\GetPixel2.pdb
?????文件??????64740??2012-03-06?13:26??像素rgb\Debug\GetPixel2.res
?????文件?????????79??2012-03-06?15:29??像素rgb\Debug\GetPixel2.SUP
?????文件??????40421??2012-03-06?15:43??像素rgb\Debug\GetPixel2Dlg.obj
?????文件???????8120??2012-03-06?15:47??像素rgb\Debug\rgb.txt
?????文件?????105489??2012-03-06?11:55??像素rgb\Debug\StdAfx.obj
?????文件?????205824??2012-03-06?15:47??像素rgb\Debug\vc60.idb
?????文件?????364544??2012-03-06?15:43??像素rgb\Debug\vc60.pdb
?????文件??????97796??2012-03-06?13:26??像素rgb\GetPixel2.aps
?????文件???????1192??2012-03-06?14:59??像素rgb\GetPixel2.clw
?????文件???????2105??2004-12-25?08:59??像素rgb\GetPixel2.cpp
?????文件???????4282??2012-03-06?11:15??像素rgb\GetPixel2.dsp
?????文件????????543??2004-12-25?08:59??像素rgb\GetPixel2.dsw
?????文件???????1357??2004-12-25?08:59??像素rgb\GetPixel2.h
?????文件??????65024??2012-03-06?15:51??像素rgb\GetPixel2.opt
?????文件????????970??2012-03-06?15:43??像素rgb\GetPixel2.plg
?????文件???????5370??2012-03-06?13:26??像素rgb\GetPixel2.rc
?????文件???????7152??2012-03-06?15:43??像素rgb\GetPixel2Dlg.cpp
?????文件???????1475??2012-03-06?14:04??像素rgb\GetPixel2Dlg.h
?????文件???????3633??2004-12-25?08:59??像素rgb\ReadMe.txt
?????文件????3884032??2012-03-06?10:06??像素rgb\Release\GetPixel2.bsc
?????文件??????86016??2012-03-06?10:06??像素rgb\Release\GetPixel2.exe
?????文件???????9412??2012-03-06?10:06??像素rgb\Release\GetPixel2.obj
?????文件????7387356??2012-03-06?10:01??像素rgb\Release\GetPixel2.pch
............此處省略22個文件信息
評論
共有 條評論