Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - <b>pie()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Pie()
Draw a pie-shaped wedge
------------------------------------------------------------------------------

Syntax
Pie( <hDC>, <nLeft>, <nTop>, <nRight>, <nBottom>,
     <nXStart>, <nYStart>, <nXEnd>, <nYEnd> )   -->   lSuccess

Arguments
<hDC> specifies the device context for a window.

<nLeft>, <nTop> specify the position of the top left-hand
corner of the bounding rectangle in pixels.

<nRight>, <nBottom> specify the position of the bottom right-
hand corner of the bounding rectangle in pixels.

<nXStart>, <nYStart> specify the position of the point that
defines the arc's starting point.  This need not lie on the
arc to be drawn.

<nXEnd>, <nYEnd> specify the position of the point that
defines the arc's end point.  This need not lie on the arc to
be drawn.

Returns
If successful, logical TRUE (.T.) is returned, otherwise FALSE
(.F.) is returned.

Description
This function draws a pie-shaped wedge formed by drawing an
elliptical arc whose starting point and end point are joined
to the arc's centre.  The actual starting point and end point
of the arc are each calculated by considering an imaginary
line drawn from the centre of the bounding rectangle which
passes through the relevant point.  Where each imaginary line
crosses the ellipse defined by the bounding rectangle is the
actual starting point or end point.  The current pen is used
to draw the ellipse, and the interior is filled using the
current brush.

Example
Pie( hDC,   100, 200,    300, 300,    250, 290,    120, 210 )


See Also: Arc() Chord() Ellipse() Polygon() PolyLine() Rectangle() RoundRect()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson