[Mono-dev] bug with loading a bitmap from an embedded resource?

Jonathan Resnick jresnick at gmail.com
Wed Jan 25 15:27:21 EST 2006


Hi,
 
I'm new to this list.  I'm trying to port a .NET application to Mono.  It
seems that when I try to load a bitmap from an embedded resource, subsequent
operations on that bitmap throw exceptions.  For example, assuming I have an
embedded resource called TestBitmap.bmp:
 
using System.Drawing:
....
 
Bitmap bitmap = new Bitmap( this.GetType(), "TestBitmap.bmp");
bitmap.MakeTransparent(Color.Red);        // throws OutOfMemoryException
 
 
or
 
Bitmap bitmap = new Bitmap( this.GetType(), "TestBitmap.bmp");
bitmap.Save("c:\test.bmp");        // throws System.Exception: Unknown Error
 
Has anyone encountered this?  I'm running on WinXP.
 
Thanks,
 
Jonathan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060125/a4f1c787/attachment.html 


More information about the Mono-devel-list mailing list