is this a bug or what?!!!!!
This is driving me crazy!!!!
If you try to draw a rectangle of any size with GDI+, it will draw a rectangle that is one pixel larger in height and width!!!!
try it yourself!
VB Code:
Private Sub Form1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles MyBase.Paint
Dim gr As Graphics = e.Graphics
Dim rect As New Rectangle(100, 100, 10, 10)
gr.DrawRectangle(Pens.Cyan, rect)
End Sub
I took a screen shot and examined the drawn rectangle in ms paint. it's SUPPOSED to be 10x10 pixels, but it's 11x11!!!!!!!! it does the same thing for any other value:mad:
DOESNT MAKE SENSE!!!