搜索资源列表
LineClip
- 一个利用中点画线算法实现的线段剪裁的程序。程序写在override函数OnDraw(CDC *pDC)函数里边-a utilization dotted line algorithm segment of the tailoring process. The override procedure write function OnDraw (CDC * pDC) function inside
PolygonCutClip
- 多边形剪裁算法的程序实现。画图程序写在override的OnDraw(CDC *pDC)里边。-polygon clipping algorithm processes. Drawing program written in the override OnDraw (CDC * pDC) inside.
DDA
- 两种常用的DDA算法的主要程序, void Line::Draw_Bresenham(CDC *pDC)
2003010296_大作业1
- a CRect rc(x - 12, y - 12, x + 12, y + 12) pDC->Ellipse(&rc) str1.Format( \"%d\",j ) pDC->SetTextColor(RGB(255,0,0)) pDC->DrawText(str1,&rc,DT_CENTER DT_VCENTER DT_SINGLELINE) PaintArrow(pDC,RGB(255,0,0),G.vexs[prev[j]].x,G.vexs[p
aa
- 在DLG中获得View的指针 CMainFrame* frm=(CMainFrame*)AfxGetApp()->m_pMainWnd CAaView * pView=(CAaView*)frm->GetActiveView() CDC *pDC=pView->GetDC() -Obtain View pointer in DLG
CDC
- 在Windows平台上,应用程序的图形设备接口(graphics device interface,GDI)被抽象为设备上下文(Device Context,DC)。 在微软基类库MFC中,CDC类是定义设备上下文对象的基类,所有绘图函数都在CDC基类中定义。当需要输出文字或图形时,就需要调用CDC类的成员函数,这些成员函数具备输出文本、绘制图形的功能。 本节讲解的例程全部在TestView.cpp文件的 void CTestView::OnDraw(CDC* pDC)函数中实现。
