this should be pretty simple but I don't get it. How can I draw a single point in .Net? If I use g.DrawLine(Black,0,0,0,0)
nothing is drawn and if I use g.DrawLine(Black,0,0,1,0)
a line with 2 dots is used. The same happens with g.DrawRectangle
. This has me intrigued.
The easiest way is to fill a rectangle which is one pixel wide rather than using a pen:
e.Graphics.FillRectangle(Brushes.Red, 42, 12, 1, 1);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With