Visual C++ and MFC Programming 2nd Edition

(Martin Jones) #1

Chapter 7: GDI Accessories and Tools Visual C++ and MFC Fundamentals


Here is an example:

void CExoView::OnDraw(CDC* pDC)
{
pDC->Chord(20, 20, 226, 144, 202, 115, 105, 32);
}

6.3.15..Bézier Curves.......................................................................................


A bézier line is an arc that is strictly based on a set number of points instead of on an
ellipse. A bézier curve uses at least four points to draw on. A bézier line with four points
can be illustrated as follows:

To draw this line (with four points), the compiler would draw a curve from the first to the
fourth points. Then it would bend the curve by bringing each middle (half-center) side
close to the second and the third points respectively, of course without touching those
second and third points. For example, the above bézier curve could have been drawn
using the following four points:
Free download pdf