[Mono-winforms-list] does system.drawline not work?
Stifu
stifu at free.fr
Thu Dec 17 15:16:46 EST 2009
I use the DrawLine method in my own app, and it works fine in Mono (on
openSUSE, although worked with older Ubuntu releases).
I guess that either the bug you're seeing is more complex than that (ie:
other things are needed to trigger it), or it's possibly Ubuntu specific
(since they repackage everything themselves, it can lead to new bugs).
A test case would help.
mdfederici wrote:
>
> I'm using Mono JIT compiler version 2.4.2.3 (Debian 2.4.2.3+dfsg-2) on
> Ubuntu Karmic. When I use system.drawline, I only see a line if the line
> is parallel to either the x or y axis. If the angle is sloped in any way,
> it simply doesn't render. This is incredibly frustrating. Is there an
> existing bug for this problem? I can't seem to find one. I find it hard to
> believe that no one else has noticed this.
>
> Attached is my rendered output for the following code (notice the lack of
> a sloped line):
>
> using(Pen stroke = new Pen(new SolidBrush(Color.Wheat), 1.0f))
> {
> graphics.DrawLine(stroke, 0, 10, 100, 10);
> graphics.DrawLine(stroke, 0, 20, 100, 20);
> graphics.DrawLine(stroke, 0, 20, 100, 10);
> }
>
> http://old.nabble.com/file/p26833804/noline.jpg
>
--
View this message in context: http://old.nabble.com/does-system.drawline-not-work--tp26833804p26834291.html
Sent from the Mono - WinForms mailing list archive at Nabble.com.
More information about the Mono-winforms-list
mailing list