PyCDC.Chord

Chord(rect, pointStart, pointEnd)

Draws a chord.

Parameters

rect : (left, top, right, bottom)

Specifies the ellipse's bounding rectangle

pointStart : (x,y)

Specifies the x- and y-coordinates of the point that defines the arc's starting point (in logical units). This point does not have to lie exactly on the arc.

pointEnd : (x,y)

Specifies the x- and y-coordinates of the point that defines the arc's ending point (in logical units). This point does not have to lie exactly on the arc.

Comments

Draws a chord (a closed figure bounded by the intersection of an ellipse and a line segment). The rect parameter specify the upper-left and lower-right corners, respectively, of a rectangle bounding the ellipse that is part of the chord. The pointStart and pointEnd parameters specify the endpoints of a line that intersects the ellipse. The chord is drawn by using the selected pen and filled by using the selected brush.

MFC References

CDC::Chord

Return Value

Always none. If the function fails, an exception is raised.