Ngày tải lên :
27/08/2012, 10:01
... ((nHeight / 2) *
(1 - (sin ( (2 * PI * i) / SEGMENTS))));
}
pDC->Polyline (aPoint, SEGMENTS);
}
void CTestGDIView::OnDraw(CDC* pDC)
{
POINT aPoint1[4] = { 120 ,100, 120 ,20 0 ,25 0,150,500,40 ... 120 ,100, 120 ,20 0 ,25 0,150,500,40 };
POINT aPoint2[4] = { 120 ,100,50,350 ,25 0 ,20 0,500,40 };
pDC->PolyBezier (aPoint1, 4);
pDC->PolyBezier (aPoint2, 4);
}
4.4 ư nhâ
Chord
Ellipse ...
Arc
ArcTo
PolyBezier
PolyBezierTo
.
(100, 20 0)
void CTestGDIView::OnDraw(CDC* pDC)
{
pDC->MoveTo(10, 10);
pDC->LineTo (20 0, 20 0);
}
#include <math.h>
#define SEGMENTS...