transparent GIF issue
Posted: 2018-11-26T19:20:03-07:00
Hi Everyone.
I am trying to use Magick.NET to convert a BITMAP into a transparent GIF and below is my code:
Everything is fine but the transparent part becomes 'black' if I view the output GIF using the tool does not support 'transparency' such as MS Paint, so is it possible to turn the 'black' color into other colors?
Thanks a lot!
Regards,
Stephen
I am trying to use Magick.NET to convert a BITMAP into a transparent GIF and below is my code:
Code: Select all
using (MagickImage img = new MagickImage("C:\\TEST.bmp"))
{
img.Format = MagickFormat.Gif;
img.Transparent(MagickColor.FromRgb(255, 255, 255));
img.Write("C:\\TEST.gif");
}
Thanks a lot!
Regards,
Stephen