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>chord()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Chord()
Draw a chord
------------------------------------------------------------------------------

Syntax
Chord( <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 start of the
line segment.

<nXEnd>, <nYEnd> specify the position of the start of the line
segment.

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

Description
This function draws a chord, which is a closed figure defined
by the intersection of a line and an ellipse.  The ellipse is
specified by the bounding rectangle, and the line by the
starting point and end point.  The current pen is used to draw
the figure, and the interior is filled using the current
brush.

Example
Chord( hDC,   300, 200,    500, 350,    450, 340,    320, 210 )


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

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