[Mono-list] GDI+ problems on 1.0.4

Dilton McGowan II diltonm@yahoo.com
Mon, 22 Nov 2004 15:16:34 -0800 (PST)


This code works on 1.0.2 when installed with the RPM
collection in mono-all.zip. In 1.0.4, I'm trying to
figure out what I'm to build from source and what I'm
to install via RPM.

Bitmap b = new Bitmap(400, 400);
Graphics g = null;
Font fnt = null;
try
{
	g = Graphics.FromImage(b);
}
catch(Exception e)
{
	sw.WriteLine("A1: " + e.Message);
}
try
{
	//This seems to be the problem line, moving
	//it to the above try block causes an exception
there.
	//I've tried two fonts that are on the system and
	//this code works on 1.0.2.
	fnt = new Font("Sans Serif",10);
	g.DrawString("0", fnt, new SolidBrush(Color.Black),
100, 100);
}
catch(Exception e)
{
	sw.WriteLine("A2: " + e.Message);
}




		
__________________________________ 
Do you Yahoo!? 
Meet the all-new My Yahoo! - Try it today! 
http://my.yahoo.com