[Mono-list] GDI+ problems on 1.0.4

Ravindra Kumar rkumar@novell.com
Mon, 22 Nov 2004 22:26:33 -0700


Hello,

This code works fine with our SVN HEAD. Is there any specific reason
for you to use libgdiplus and System.Drawing from 1.0.4 release ?
As far as stability is concerned, I think our System.Drawing stack
is more stable in HEAD, because it gets tested everyday with our
new SWF implementation. If you don't mind, please update your
libgdiplus and System.Drawing from HEAD.

Thanks,
Ravi

>>> Dilton McGowan II <diltonm@yahoo.com> 11/23/04 4:46 AM >>>
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 
 

_______________________________________________
Mono-list maillist  -  Mono-list@lists.ximian.com 
http://lists.ximian.com/mailman/listinfo/mono-list