How to Draw a Chord (Closed Arc)
Posted on January 5, 2009
1 2 3 4 5 6 7 8 9 10 11 12 | 'Graphics - How to Draw a Chord (Closed Arc) Option Explicit Declare Function Chord Lib "gdi32.dll" (ByVal hdc As Long, ByVal nLeftRect As Long, _ ByVal nTopRect As Long, ByVal nRightRect As Long, ByVal nBottomRect As Long, _ ByVal nXRadial1 As Long, ByVal nYRadial1 As Long, ByVal nXRadial2 As Long, _ ByVal nYRadial2 As Long) As Long Private Sub Command1_Click() retval = Chord(Form1.hdc, 10, 20, 210, 120, 210, 70, 110, 20) End Sub |