Visual C#.NET: Convert Document & Images

How to convert document image using C#.NET
Yiigo.Image for .NET provides advanced document and image conversion support, allowing developers to convert to and from over 100 document and image formats supported by this SDK. Find more document & image conversion information on Yiigo.Imaging for .NET Conversion Support.
Yiigo.Image for .NET Conversion SDK has those following functionalities:
This document provides comprehensive Visual C#.NET samples for guiding developers to convert document & images one to another using Yiigo.Image for .NET. Find more document & image conversion tutorials on VB.NET Document Image Conversion, Web Imaging Viewer Conversion Support and Convert Images and Docuemtns in .NET Winforms.
Document Image Conversion with C#.NET Sample Code


Before using Yiigo.Image for .NET Conversion SDK in Visual C#.NET, make sure that you have installed.
  • Operating systems - Windows 7, Windows Vista, and Windows XP, etc
  • Compatible with .NET framework 2.0 and above versions
  • Support Visual Studio 2005, 2010 and other .NET development environments
  • Yiigo.Image for .NET installation

Start to Convert

  • Open and run your Microsoft Visual Studio;
  • Choose either "Visual C# Projects" in "New Project" dialog box;
  • Choose "Windows Application" in the "Templates" List and name it "YiigoImagingConversionCsharp";
  • Right-click on the "References" folder, and select "Add Reference..." from the context menu in the "Solution Explorer" window;
  • In the "Add Reference" dialog box, select the ".NET" tab and browse to Yiigo.Imaging.Net.dll library;
  • Add it to your Visual C# applications;
  • Call Yiigo .NET Image Namespace & Copy those following codes:
using System.IO;
using System.Drawing.Printing;
using Yiigo.Imaging;
using Yiigo.Imaging.Processing;
using Yiigo.Imaging.Conversion;

// Write conversion function to document image applications
private void Conversion(string inFile, string outFile, ImageEncoder encoder)
using (ImageSource src = new FileSystemImageSource(inFile, true))
using (Stream s = File.OpenWrite(outFile))
encoder.Save(s, src, null);

// Convert file formats, for example
Conversion(1.png, 1.gif, new GIFEncoder());

// Batch Conversion, for example
BatchConversion(1.png, 1.gif, new GIFBatchEncoder());
BatchConversion(2.png, 2.gif, new GIFBatchEncoder());
BatchConversion(3.png, 3.gif, new GIFBatchEncoder());
BatchConversion(4.png, 4.gif, new GIFBatchEncoder());
Other Plugins
Image Viewer CoreBarcode PluginPDF Read & WriteTesseract OCR PluginForm Processing PluginJBIG2 CodecJPEG2000 CodecISIS ScannerTwain ScannerDICOM ReaderCAD Scanner