資源簡介
用VC++6.0實現(xiàn)的掃描線填充,裁剪算法及畫線方法 CPen pen(PS_SOLID,1,fillcolor); //設(shè)置掃描線所用筆的屬性 CPen *old=pDC->SelectObject(&pen); int j,k,s=0; int p[9]; //每根掃描線交點 int pmin=1000; int pmax=0; for(int i=0;i<inLength;i++)//建立邊表 { edge[i].dx=(float)(inVertexArray[i+1].x-inVertexArray[i].x)/(inVertexArray[i+1
代碼片段和文件信息
//?clip.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“clip.h“
#include?“clipDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CClipApp
BEGIN_MESSAGE_MAP(CClipApp?CWinApp)
//{{AFX_MSG_MAP(CClipApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CClipApp?construction
CClipApp::CClipApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CClipApp?object
CClipApp?theApp;
//////////////////
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????2064??2010-06-29?10:36??clip.clw
?????文件???????2035??2010-06-09?07:12??clip.cpp
?????文件???????4384??2010-06-09?13:47??clip.dsp
?????文件????????514??2010-06-09?07:14??clip.dsw
?????文件???????1302??2010-06-09?07:12??clip.h
?????文件?????238592??2010-06-29?10:36??clip.ncb
?????文件??????51712??2010-06-29?10:36??clip.opt
?????文件???????2851??2010-06-29?09:25??clip.plg
?????文件???????6572??2010-06-15?17:09??clip.rc
?????文件??????20852??2010-06-18?14:04??clipDlg.cpp
?????文件???????3022??2010-06-18?08:56??clipDlg.h
?????文件???????3543??2010-06-09?07:12??ReadMe.txt
?????文件???????1094??2010-06-15?10:25??resource.h
?????文件????????206??2010-06-09?07:12??StdAfx.cpp
?????文件???????1054??2010-06-09?07:12??StdAfx.h
?????文件???????1079??2010-06-09?13:38??Vertex_Count.cpp
?????文件???????1237??2010-06-09?13:38??Vertex_Count.h
?????文件???????1027??2010-06-09?13:43??VertexNo.cpp
?????文件???????1205??2010-06-09?13:43??VertexNo.h
?????文件???????1078??2010-06-09?07:12??res\clip.ico
?????文件????????396??2010-06-09?07:12??res\clip.rc2
?????文件??????36428??2010-06-15?17:09??clip.aps
?????目錄??????????0??2010-06-09?07:12??res
-----------?---------??----------?-----??----
???????????????382247????????????????????23
評論
共有 條評論