"Boni" <oilia@nospam> wrote in message
news:up**************@TK2MSFTNGP12.phx.gbl...
IMHO this should be calculated automatically by pen alignment. But I can't
get it work
"Mythran" <ki********@hotmail.comREMOVETRAIL> schrieb im Newsbeitrag
news:OH**************@TK2MSFTNGP10.phx.gbl...
"Boni" <oilia@nospam> wrote in message
news:uB**************@TK2MSFTNGP09.phx.gbl... Dear all,
I need to draw a collection of hor/vert lines. The lines in the
collection are nor ordered.
Each line has it's start point end point width and height.
|Endpoint 2
|
StartPoint1_________|Endpoint1/StartPoint2
The problem is that in above situation the corner itsef (point where
line crosses) is empty.
If you "zoom" on the corner you would see:
||||||
||||||
||||||||||||||
Not sure how you are drawing...but I was able to draw 2 lines one
horizontal, one vertical...both with intersecting points (end point of horiz
is the same as the beginning point of the vertical) and they lined up even.
I tried with Graphics.DrawLine and I came up with the following:
||||||||||
|||||||||||||||
||||||||||
Then I tried Graphics.DrawLines and ended up with:
||||||||||
||||||||||||||||||||
||||||||||||||||||||
Which is what we want, I assume...look into the DrawLines method.
HTH,
Mythran