the left line of the second rectangle is not the right line of the first rectangle. there is one pixel different (x direction).
just try it.
whats wrong here? please help me.
thanx-
Tomaz Koritni
Delphi Developer
Fri, 07 Jan 2005 17:08:02 GMT
Re:canvas.rectangle
Hi
Nothing is wrong, this is the way windows GDI draws rectangles and also other objects. Things are drawn from x1, y1 to x2 - 1, y2 - 1. You should increase right and bottom coordinates by one to get what you want.