DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Mon, 20 Aug 2007 01:15:35 -0700,    posted on: microsoft.public.dotnet.framework.drawing        back       

Thread Index
  1    Dylan Nicholson


Bitmap.MakeTransparent() and Bitmap.Save()   
Hi,

I've found quite a lot of messages and posts by developers at a loss
as to how to use MakeTransparent() to generate a GIF89 image with a
transparent color...but I've come across a particular problem that
I've yet to see mentioned, namely that using

bitmap.Save("filename.gif")

works just fine (correctly sets the transparent color in the GIF
file), whereas

bitmap.Save("filename.gif", ImageFormat.Gif);

doesn't work - the "transparent" color is consistently turned to
black.
Similarly for the Save(Stream, ImageFormat) overload, which is the one
I actually wanted to use (as I'd like to create the GIF file in
memory).  Only workaround is to use the first form, saving to a temp
file, then load the file into memory.

I've also tried the other overloads for Bitmap.Save() with no luck.
Wondering if "ImageFormat.Gif" implies GIF87...but there is no
ImageFormat.Gif89.

Dylan
Date:Mon, 20 Aug 2007 01:15:35 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us