I attempt to draw lines on specific coordinates using a Graphics.AddRectangle() and Graphics.DrawPath().
The parameters of my Rectangle:
Dim objPath As New GraphicsPath
objPath.AddRectangle(New Rectangle(0, 0, Me.Width, 1))
Then I draw it using DrawPath:
objPen.Width = 1
objGraphics.DrawPath(objPen, objPath)
I expect a "line" (rectangle) on the top of my graphic having a width of exactly 1px. Result: It draws a line of 2px width.
Demonstration of the 2px width drawing
What is the cause of this behaviour?