Visual C#.NET: Compress Document & Images

How to compress document image using C#.NET
Yiigo.Image for .NET provides advanced document and image compression support, allowing developers to compress to and from over 100 document and image formats supported by this SDK. Find more document & image compression and decompression information on Yiigo.Imaging for .NET Compression Support.
Yiigo.Image for .NET Compression SDK has those following functionalities:
  • Compress, decompress 8-bit grayscale, 24-bit RGB, 16-bit grayscale, and 48-bit RGB
  • Support for Lossless and Lossy compression
  • Specify compression ratio if use JPEG2000 compression
  • Support JPEG Compression, Deflate/PNG Compression, CCIT Group 4 / Group 3 compression, LZW Compression, Huffman Compression, RLE Compression, JPEG2000 Compression, JBIG2 compression
This document provides comprehensive Visual C#.NET samples for guiding developers to compress, decompress document & images using Yiigo.Image for .NET. Find more document & image compression tutorials on VB.NET Document Image Compression, Web Imaging Viewer Compression Support and Compress Images and Documents in .NET Winforms.
Document Image Compression with C#.NET Sample Code

Document Image Compression with C#.NET Sample Code

Before using Yiigo.Image for .NET Compression 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 Compress

  • 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 "YiigoImagingeCompressionCsharp";
  • 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.Codec.Compression;
using Yiigo.Imaging.Codec.Decompression;

// Compress an image
YiigoCompression Compression = new YiigoCompression();
Compression.Load(@"C:/1.tif");
Compression.Compression Type = CompressionType.Group4;
Compression.save();

//Decompress an Image
YiigoDeompression Decompression = new YiigoDecompression();
Deompression.Load(@"C:/1.tif");
Deompression.Deompression Type = DeompressionType.Group4;
Deompression.save();
Products
Other Plugins
Image Viewer CoreBarcode PluginPDF Read & WriteTesseract OCR PluginForm Processing PluginJBIG2 CodecJPEG2000 CodecISIS ScannerTwain ScannerDICOM ReaderCAD Scanner