Sirsha.com

Sometimes I like to think about...  stuff... .. .
Welcome to Sirsha.com Sign in | Join | Help
in Search

Sirsha Development Resources Blog

because everyone always wants more documentation...

GDI+ & GIF problems

... I was trying to dynamically generate an image with a transparent background that could be displayed in a web browser using GDI+ in the .NET framework. I was working with GIFs, since I had read previously that IE doesn't support transparent PNGs (unless you use the filter hack).

At first look it didn't seem hard - create a Bitmap, draw my image, call Bitmap.MakeTransparent, and save the result. Easy...but it didn't work. The image rendered as a solid black rectangle. Hi ho, hi ho, it's off to Google I go.

.

[WebLogs @ ASP.NET]
Between this problem and the fact that GDI+ won't save to CMYK, I get the feeling that they should have started working on this section of the framework about a year or so earlier than they did. The current state seems like either a 3/4 finished product or maybe just an inferior product.



[Listening to: Spiritual High--State of Independence Parts I, II, III - Moodswings Chrissie Hynde - State of Independence Parts I, II, III (15:52)]
Published Saturday, September 13, 2003 1:04 PM by sjh
Filed under:

Comments

No Comments
New Comments to this post are disabled
Powered by Community Server, by Telligent Systems