CClientDC dc(this); CPen pen(PS_SOLID,1,RGB(255,0,0)); dc.SelectObject(&pen); float x,y; int centx=pt1.x,centy=pt1.y; int n=20; int i,j,k; int r=210; int X[20],Y[20]; dc.MoveTo(centx,centy-r); for(i=1;i<=n;i++){ x=centx+r*co s(PI/2.0+i*2*PI/n); y
Contents Chapter 1: The Microsoft Developer Studio The Microsoft Developer Studio The Project Workspace Project Workspace Window Project Configurations Managing Complex Projects Project Settings Converting Projects Source Code Files Resource scr ipt
用VC++6.0实现的扫描线填充,裁剪算法及画线方法 CPen pen(PS_SOLID,1,fillcolor); //设置扫描线所用笔的属性 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