[Mono-winforms-list] does system.drawline not work?

Stifu stifu at free.fr
Thu Dec 17 17:47:00 EST 2009


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.



More information about the Mono-winforms-list mailing list