mercredi 25 février 2015

Drawing a consecutive line on a form like MS paint on Winforms C#

I got a question about the Graphics object. I want to draw an consecutive line like MS paint. I don't know how to implement such thing. I do know how to start a line from the mouse location. This I do on a picturebox and add the new Point(e.X, e.Y). The otherline could not be the same ofcourse else there would be no line visible. I could not make the other Point(10, 10) or something like that. Because then it would create a line always from the same point.


Does anyone know how to draw consecutive lines(with curves)


Does it has something to do with the mouse_down and mouse_up event? I am really stuck with this problem for a long time. If anyone of you have the time to explain me method that would work, that would be great!


Thanks in advance!


Aucun commentaire:

Enregistrer un commentaire