Drawing using the Graphics class in C #

I would like to draw C # with the mouse, as if the mouse was a pen. I am trying to use the Graphics class using the DrawLines method, which takes an array of points as a parameter.

Do you think this is the best option, or do you know if there is another easy way to do this?

Thanks in advance

Sincerely.

+3
source share
2 answers

Take a look at this sample:

http://www.codeproject.com/KB/graphics/drawtools.aspx

In particular, the Pencil tool does what you need.

+1
source

MouseMove, MouseDown MouseUp. MouseDown MouseUp , , . , MouseMove , (LOT MouseMove , , , - , ).

+3

Source: https://habr.com/ru/post/1766793/


All Articles