Visual VB.NET: Compress, Decompress JBIG2 Images

How to compress, decompress JBIG2 images using VB.NET
Yiigo provides .NET JBIG2 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 JBIG2 compression and decompression functionalities. Find more JBIG2 image compression and decompression information on Yiigo.Imaging for .NET JBIG2 Plugin.
Yiigo.Imaging for .NET JBIG2 Plugin has those following functionalities:
  • Compress, decompress bitonal images
  • Easy to compression certain images or the whole files at one time
  • Support Lossy and Lossless compression modes
  • Drag and drop image to process image compression & decompression
For VB.NET developers, Yiigo provides online tutorials to encode, decode bi-tonal images and JBIG2 format images using Yiigo.Image for .NET in details. Find more JBIG2 compression and decompression tutorials on JBIG2 Compression and Decompress Support for Visual C#.NET, Web Imaging Viewer JBIG2 Encoding and Decoding Support and Compress & Decompress JBIG2 in .NET Winforms.
Compress, Decompress with VB.NET Sample Code


Before using Yiigo.Imaging for .NET JBIG2 Plugin in VB.NET, make sure that you have installed.

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 "YiigoImagingeJBIGECompressionDecompressionVBNET";
  • 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, Yiigo.Imaging.Jbig2Codec.Encoder.dll library and Yiigo.Imaging.Jbig2Codec.Decoder.dll;
  • 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.Jbig2Codec.Encoder

Dim Compression As New Jbig2Encoder()
Compression.CompressionMode = CompressionMode.Lossless

Start to Decompress JBIG 2 Images

Imports System.IO
Imports System.Drawing.Printing
Imports Yiigo.Imaging
Imports Yiigo.Imaging.Processing
Imports Yiigo.Imaging.Jbig2Codec.Decoder

Dim Decompression As New Jbig2Decoder()
Other Plugins
Image Viewer CoreBarcode PluginPDF Read & WriteTesseract OCR PluginForm Processing PluginJBIG2 CodecJPEG2000 CodecISIS ScannerTwain ScannerDICOM ReaderCAD Scanner