-
I got the x and y coordinates of the pointer. How to draw a line with that coordinates. I can“t use Direct draw ( sitting on a NT station). I have some idea of catch the movement in shootergames like Q3. Then i can compare it to other gamers. Good idea?
-
To draw a line you may use the LineTo API call which should work for NT too...
-
Use the .line function:
Code:
Form1.line (x1,y1)-(x2,y2)
than you can draw a line from x2, y2 to a new point like this:
Form1.line -(x3,y3)
.line works with picturebox and other stuff.
Good luck,
-
Fox, how do you use colors with LineTo?
-
You have to create a brush, apply it to the DC and then draw the line..
-
-
Fox, can you give me a code sample, since my didn't work