In the following code, I\'m trying to draw two lines: One with a subpixel width (0.5) and the other with 1px width:
var img = new Bitmap(256, 256);
The article Scaling the Pen object mentions a bug in GDI+ Pen that makes it unable to scale down properly when its width is less than 1.5
.
Also, if you try to draw three lines with widths 2.0F
, 2.5F
and 3.0F
respectively, you'll see a visual difference, so your case really looks like some issue with GDI+.