Re: does system.drawline not work?

Stifu <[email protected]>
Newsgroups gmane.comp.gnome.winforms
Message-ID <[email protected]>
I don't have Mono 2.4 anymore, but this works fine with Mono 2.6 on openSUSE
11.2.

Screenshot: http://stifu.free.fr/pics/temp/mono_draw.png


mdfederici wrote:
> 
> What else is required for a test case besides the code I gave? I've also
> noticed that things like fillellipse or drawellipse don't work but
> fillrectangle and drawrectangle do. Below is full code that one should be
> able to run as is. Below that is the output I get on my ubuntu karmic
> machine. Obviously there are no ellipses. See my first post for example of
> lines with a slope not rendering.
> 
> using System;
> using System.Drawing;
> using System.Text;
> using System.Windows.Forms;
> using System.Drawing.Drawing2D;
> 
> namespace TestProject
> {
> 	class TestCase : Form
> 	{
> 		public TestCase()
> 		{
> 			
> 		}
> 		
> 		protected override void OnPaint(PaintEventArgs e)
> 		{
> 			using(SolidBrush colorBrush = new SolidBrush(Color.Blue))
> 			{
> 				e.Graphics.FillRectangle(colorBrush, 0, 0, 50, 50);
> 				e.Graphics.FillEllipse(colorBrush, 100, 25, 50, 25);
> 			}
> 			
> 			using(Pen stroke = new Pen(new SolidBrush(Color.Blue), 1.0f))
> 			{
> 				e.Graphics.DrawEllipse(stroke, 25, 60, 50, 25);
> 				e.Graphics.DrawRectangle(stroke, 60, 60, 50, 50);
> 			}
> 		}
> 		
> 		public static void Main(string[] args)
> 		{
> 			Application.Run(new TestCase());
> 		}
> 	}
> }
>  http://old.nabble.com/file/p26836033/noellipse.jpg 
> 
> 

-- 
View this message in context: http://old.nabble.com/does-system.drawline-not-work--tp26833804p26836372.html
Sent from the Mono - WinForms mailing list archive at Nabble.com.

_______________________________________________
Mono-winforms-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-winforms-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.