SAMPLE: How to Draw Cubic Bezier Curves in Windows and Win32sLast reviewed: February 15, 1996Article ID: Q135058 |
The information in this article applies to:
SUMMARYYou can get the functionality provided by the Win32 PolyBezier() function on the Windows 3.1 and Win32s platforms. The Bezier sample code shows by example how to draw cubic Bezier curves as well as curves with other degrees on both Windows version 3.1 and Win32s. Download BEZIER.EXE, a self-extracting file, from the Microsoft Software Library (MSL) on the following services:
MORE INFORMATIONThe PolyBezier() function draws cubic Bezier curves by using the endpoints and control points specified by the lppt parameter. The first curve is drawn from the first point to the fourth point by using the second and third points as control points. Each subsequent curve in the sequence needs exactly three more points: the ending point of the previous curve is used as the starting point, the next two points in the sequence are control points, and the third is the ending point.
Steps to Using the Sample Code
|
Additional reference words: 1.30 3.10 4.00 Windows 95 Stones GDI
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |