Visual VB.NET: Compress, Decompress JPEG2000 Images

How to compress, decompress JPEG2000 images using VB.NET
Yiigo provides .NET JPEG2000 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 JPEG2000 compression and decompression functionalities. Find more JPEG2000 image compression and decompression information on Yiigo.Imaging for .NET JPEG2000 Plugin.
Yiigo.Imaging for .NET JPEG2000 Plugin has those following functionalities:
  • Control JPEG2000 compression ratio ranging from 0 to 100
  • Support Lossy and Lossless compression modes
  • Encode, decode single-page JPEG2000 files
  • Compress, decompress multi-page JPEG2000 files
  • Support metadata encoding & decoding, such as IPTC, XMP, XML Box, UUID Boxes
  • Load and write JPEG2000 image from/to file or stream, PDF documents and other compatible scanners
For VB.NET developers, Yiigo provides online tutorials to encode, decode bi-tonal images and JPEG2000 format images using Yiigo.Image for .NET in details. Find more JPEG2000 compression and decompression tutorials on JPEG2000 Compression and Decompress Support for Visual C#.NET, Web Imaging Viewer JPEG2000 Encoding and Decoding Support and Compress & Decompress JPEG2000 in .NET Winforms.
Compress, Decompress JPEG2000 with VB.NET Sample Code

Requirements

Before using Yiigo.Imaging for .NET JPEG2000 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 "YiigoImagingeJpeg2000CompressionDecompressionVBNET";
  • 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.Jpeg2000Codec.Encoder.dll library and Yiigo.Imaging.Jpeg2000Codec.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.Jpeg2000Codec.Encoder

Dim Compression As New Jpeg2000Encoder()
Compression.Load("C:/1.jp2")
Compression.CompressionMode = CompressionMode.Lossless
Compression.CompressionRatio= "50"
Compression.save()

Start to Decompress JBIG 2 Images

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

Dim Decompression As New Jpeg2000Decoder()
Deompression.Load("C:/1.jp2")
Deompression.save()
Products
Other Plugins
Image Viewer CoreBarcode PluginPDF Read & WriteTesseract OCR PluginForm Processing PluginJBIG2 CodecJPEG2000 CodecISIS ScannerTwain ScannerDICOM ReaderCAD Scanner