Why is it that the following 3 lines of code, will in fact draw a rectangle but the top left 1 pixel corner of that rectangle is cut off. I have been searching for a while for an answer to this question but it seems to be undocumented. I am using the 2.0 .Net Framework.
Graphics g = this.CreateGraphics();
Pen pen = new Pen(Color.Black, 1);
g.DrawRectangle(pen, 10, 10, 100, 20);
Start Free Trial