How do i draw a triangle in a picture box, when i know either all the 3 sides, or all the 3 angles?
Printable View
How do i draw a triangle in a picture box, when i know either all the 3 sides, or all the 3 angles?
How about drawing 3 lines?
Code:Private Sub Command1_Click()
Picture1.Line (200, 200)-(300, 300)
Picture1.Line (200, 200)-(100, 300)
Picture1.Line (100, 300)-(300, 300)
End Sub
The problem is that i have the value for the sides in centimeter(probably) and i want to draw it on a pic box. I have to assume the probability that the triangle could be isocelest, right, or equilateral. tha problem with what u just gave me, is that i what if i get 12,4,5 fior the triangle values? how would i draw this triangle?
Megatron, will it be using Polyline API be faster as compare to the Line function that come with the PictureBox control.
So, how do i use the Polyline API to draww a triangle if i know the length of al the 3 sides, or the values of the angles?