2
我需要充滿密閉besier曲線顏色...任何人可以幫助我提高這個代碼,因爲它不工作:如何填寫貝塞爾曲線GDIÇ
COLORREF collor = RGB(100,50,150);
CPen g(PS_INSIDEFRAME, 50, collor);
pDC->SetBkColor(RGB(90, 100, 128));
pDC->SelectObject(&g);
CPoint Pt[10]=
{
CPoint(400, 260),
CPoint(480, 260),
CPoint(500, 260),
CPoint(470, 290),
CPoint(450, 350),
CPoint(470, 370),
CPoint(430, 370),
CPoint(420, 391),
CPoint(405, 410),
CPoint(400, 260),
};
pDC->PolyBezier(Pt, 10);
謝謝!