Convert RasterImage to GIF
Sample Code (convert single frame image to GIF):
ConvertHandler.Convert("input.jpeg", @"output.gif");
Sample Code (convert multi-frame image to GIF):
RasterImage img = new RasterImage("input.tiff");
img.Save(@"output.GIF");
When you convert image to GIF image file using XImage.Raster C# Imaging library, you can customize and apply the following GIF image options
- Interlaced if save gif file in interlaced format
- TransparencyColor pick a color from color palette and define it as a transparent color
- TransparencyMatch colors within this distance are considered equal
- Version set output gif's version. note:87a not support animate delays nor transparent background colors