Visual VB.NET: Compress Document & Images

How to compress document image using VB.NET
Yiigo provides .NET Document and Image Compression support included in Yiigo.Image for .NET, which can be easily added to your document imaging applications with fully-automated, dynamic, and feature-packed document and image compression & decompression functionalities. 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 bitonal, color and grayscale image data
  • Compress certain images or the whole files at one time
  • Compress images and documents using Lossy and Lossless compression modes
  • Support JPEG Compression, Deflate/PNG Compression, CCIT Group 4 / Group 3 compression, LZW Compression, Huffman Compression, RLE Compression, JPEG2000 Compression, JBIG2 compression
  • Drag and drop image to process image compression & decompression
For VB.NET developers, Yiigo provides online tutorials to compress over 100 document and image format using Yiigo.Image for .NET in details. Find more Document and Image Compression tutorials on Document and Image Compression Support for Visual C#.NET, Web Imaging Viewer Document and Image Compression Support and Compress Document and Image in .NET Winforms.
Document Image Compression with VB.NET Sample Code

Requirements

Before using Yiigo.Image for .NET Compression SDK in VB.NET, make sure that you have installed.
  • Windows OS: Windows 7, Windows Vista, and Windows XP, etc
  • Windows Server 2003, Windows Server 2008
  • .NET Framework 2.0, 3.0, 4.0
  • Microsoft Visual Studio 2005, 2008, 2010
  • Yiigo.Image for .NET setup

Start to Compress

  • Start your Microsoft Visual Studio;
  • Choose "Project" in "File-New" from the menu;
  • In "New Project" dialog box, choose "Visual Basic Projects";
  • Choose "Windows Application" in the "Templates" List and name it "YiigoImagingCompressionVBNET";
  • In the "Solution Explorer" window from the context menu, right-click on the "References" folder, and select "Add Reference...";
  • In the "Add Reference" dialog box, select the ".NET" tab and browse to Yiigo.Imaging.Net.dll library;
  • Add it to your VB.NET applications;
  • Import Yiigo .NET Image Namespace & copy those following codes:
Imports System.IO
Imports System.Drawing.Printing
Imports Yiigo.Imaging
Imports Yiigo.Imaging.Processing
Imports Yiigo.Imaging.Codec.Compression
Imports Yiigo.Imaging.Codec.Decompression

' Compress an image
Dim Compression As New YiigoCompression()
Compression.Load("C:/1.tif")
Compression.CompressionType = CompressionType.Group4
Compression.save()

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