画笔

it2025-03-31  18

void CGdi1View::OnDraw(CDC* pDC) {  CGdi1Doc* pDoc = GetDocument();  ASSERT_VALID(pDoc);  //graphics graphics(pDC->m_hDC);//注意不要写错。我查了半天 汗  Graphics graphics(pDC->m_hDC);     Pen newpen(Color(255,0,0),3);  newpen.SetWidth(10);//设置画笔宽度  graphics.DrawLine(&newpen,20,10,200,100);  // TODO: add draw code for native data here }

转载于:https://www.cnblogs.com/lkgosurlfing/archive/2009/05/15/1457908.html

相关资源:Unity3D画笔
最新回复(0)