I have a paint program made in C#/GDI+ in which I draw different shapes with interchangeable colors and pen sizes on a panel. I have got the shape-drawing methods working OK, but when it comes to using a free pen (as you would in MS Paint) I have made a method that does the job, just quite ugly (see pic).
This is the code I use.
Code:
if (crtanje) { debljina = float.Parse(debljina_box.Text);
Leave a comment: