hi ceaser
this is what I use to draw an arc.
PHP Code:
Sub DrawArc
x1 = Int(txtx1.Text)
y1 = Int(txty1.Text)
x2 = Int(txtx2.Text)
y2 = Int(txty2.Text)
r = Int(txtr.Text)
If x2 > y2 Then
For l = x2 To y2 Step -1
x = Round(x1 + r * Cos(l * cPI / 180))
y = Round(y1 + r * Sin(l * cPI / 180))
bmp.SetPixel(x,y,Color)
Next
Else
For l = x2 To y2 Step 1
x = Round(x1 + r * Cos(l * cPI / 180))
y = Round(y1 + r * Sin(l * cPI / 180))
bmp.SetPixel(x,y,Color)
Next
End If
form1.DrawImage(bmp.Value,0,0)
form1.Refresh
End Sub
x1 and y1 represent center of arc
x2 represents starting angle
y2 represents ending angle
r represents radius
In a day or two depending on how fast I can document how to use what I have so far and then I will post it all in projects to see if there is any interest in trying make it better then what it is at present.
I also uploaded a screen capture of a doodle to show what the arcs look like.