Hello, I need to draw a short line, I am doing this with visual basic Line Method, I have no problem drawing the line in diffrent postions, lenghts, etc.
My problem is that I need to locate the line related to an angle value ( input by the user ) range 0 to 180°.
The line will be draw inside a circle, like a clock i.e. 90° will be at twelve o'clock, if the user type 90° I need to draw an horizontal line under the number twelve of the clock, if he write 180° I have to draw a line, under the number three of the clock.
I have tried some things, but I am missing how to move x1,y1, x2, y2 all together depending on the angle.
You can see an example of the graphics here:
http://www.softvirtual.com.ar/experts/90.jpghttp://www.softvirtual.com.ar/experts/180.jpgi.e. for 180° this are the values for the line:
parForm.Line (X1, Y1)-(X2, Y2)
X1 = 12792,00 / Y1 = 6890
X2 = 12792,0 / Y2 = 6355
Thank you
Start Free Trial