|
Curves
A regular curve is a set of highlighted pixels on a raster display (or dots on
a printed page) that define the perimeter (or part of the perimeter) of a
conic section. An irregular curve is a set of pixels that define a curve that does
not fit the perimeter of a conic section. In Windows, the ending point is
excluded from a curve just as it is excluded from a line.
When an application calls one of the Windows curve-drawing functions, GDI
breaks the curve into a number of extremely small, discrete line segments. After
determining the endpoints (starting point and ending point) for each of these
line segments, GDI determines which pixels (or dots) define each line by applying
its DDA.
An application can draw an ellipse or part of an ellipse by calling the Arc function. This function draws the curve within the perimeter of an invisible
rectangle called a bounding rectangle. The size of the ellipse is specified by
two invisible radials extending from the center of the rectangle to the sides
of the rectangle. The following illustration shows an arc (part of an ellipse)
drawn by using the Arc function.
When calling the Arc function, an application specifies the coordinates of the bounding rectangle
and radials. The preceding illustration shows the rectangle and radials with
dashed lines while the actual arc was drawn using a solid line.
When drawing the arc of another object, the application can call the SetArcDirection and GetArcDirection functions to control the direction (clockwise or counterclockwise) in which
the object is drawn. The default direction for drawing arcs and other objects is
counterclockwise.
In addition to drawing ellipses or parts of ellipses, Windows-based
applications can draw irregular curves called Bézier curves. A Bézier curve is an irregular curve whose curvature is defined by four control points (p1, p2, p3, and p4). The control points p1 and p4 define the starting and ending points of the curve, and the control points p2 and p3 define the shape of the curve by marking points where the curve reverses
orientation.
An application can draw irregular curves by calling the PolyBezier function, supplying the appropriate control points.
| Last news from Greatis Software |
 |
|
Nostalgia .Net |
|
.Net is powerful, but not all-powerful, so sometimes we need to use Win32 API for our .Net applications. It's simple enough with Platform Invoke if you have Win32 skill, but we do not always have time to dig the ancient documentation, declare the special types that are compatible with Win32, find the values of the Win32's constants and so on. Nostalgia .Net offers several simple-to-use classes, and components that will allow you to forget about the headache of Win32 and just use the power of Win32 in your application the same way as you use the native. Net classes. More » |
| Recommended software for developers |
 |
|
Ultimate Pack |
|
Component pack for Delphi and C++ Builder that contains runtime form designer, runtime object inspector, print suite and much more for the very special price. More » |
 |
|
Form Designer .Net |
|
Unique runtime form design solution that allows to edit any form in .Net WinForms application at runtime with full source codes for only 300 euro! More » |
 |
|
Print Suite .Net |
|
Print Suite .Net is a set of components for easy printing texts, images and grids from your WinForms applications. Full C# source codes are available More » |
 |
|
Gradient Controls .Net |
|
Gradient Controls .Net offers controls with gradient background feature. Labels, panels and so on... Full C# source codes are available More » |
 |
|
Greatis iGrid |
|
iGrid plots drawing grid right over your desktop, so you can use it everywhere, with any drawing application without any special plugins for different graphic editors. More » |
All the contacts and projectsDmitry Vasiliev (just.dmitry)
Related LinksSoftware for Visual Studio .NET developers Software for Delphi and C++ Builder developers Software for Visual Basic 6 developers Delphi Tips&Tricks MegaDetailed.NET More Online Helps Win32 Programmer's Reference Win32 Multimedia Programmer's Reference OLE Programmer's Reference Microsoft Windows Pen API Programmer's Reference Microsoft Windows Sockets 2 Reference Microsoft Windows Telephony API (TAPI) Programmer's Reference Unix Manual Pages
|