How to C#: Imaging
Using Imaging SDK for C#.NET
Winforms Controls
Image Load
Image Access and Modify
Convert to GIF
Convert to GIF
Home ›› XImage.Raster ›› C# Raster: Convert to GIF

C# Raster - Convert Image to GIF in C#.NET

Online C# Guide for Converting Image to GIF in .NET Application

Related .net document control helps: pdf editor: EdgePDF: ASP.NET PDF Editor Web Control: Online view, annotate, redact, edit, process, convert PDF documents iis document viewer: C# HTML5 Viewer: Deployment on IIS
document redact Redact document ASP.NET: add, delete, apply redaction on PDF files in web browser using convert pdf: ASP.NET Convert PDF Control: Convert, export PDF to Word, HTML, Tiff files in C# ASP.NET azure pdf editor: ASP.NET Azure PDF Editor Control: view, edit, annotate, redact PDF files online dnn pdf editor: ASP.NET DNN PDF Editor Control: view, edit PDF files in Dotnetnuke application webforms pdf editor: ASP.NET WebForms PDF Editor: create, view, edit, annotate, redact PDF file in ASP.NET WebForms application

Install XImage.Raster in C# Project

Add necessary references to your C#.NET project. Right-click the project and select "Add Reference..." to locate and add the following DLLs as project references;




Use corresponding namespaces;

  using RasterEdge.XImage.Raster;

Note: When you get the error "Could not load file or assembly 'RasterEdge.Imaging.Basic' or any other assembly or one of its dependencies. An attempt to load a program with an incorrect format", please check your configure as follows:


       If you are using x64 libraries/dlls, Right click the project -> Properties -> Build -> Platform target: x64.


       If using x86, the platform target should be x86.

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");