苦难辉煌全.docVIP

  • 69
  • 0
  • 约4.42万字
  • 约 6页
  • 2016-12-25 发布于河南
  • 举报
Void CPolygonFillView::OnMenuitem32774() { CDC *pDC; pDC=GetDC(); const N=8; int OldColor,GetColor; int NewColor=0x00ff0000; int i,x,y,cx,cy; long top; int P[N+1][2]={{100,150},{150,230},{200,160},{250,220},{300,160}, {250,80},{200,110},{160,70}, {100,150}}; typedef struct { int x,y;} POINT; POINT stack[50000]; int Seedx=110,Seedy=150; cx=P[0][0]; cy=P[0][1]; pDC-MoveTo(cx,cy); for(i=1;i=N;i++) { cx=P[i][0]; cy=P[i][1]; pDC-LineTo(cx,cy); } OldColor=pDC-GetPixel(Seedx,Seedy); pDC-SetPixel(Seedx,Seedy,NewColor); top=0; stack[top].x=See

文档评论(0)

1亿VIP精品文档

相关文档