JBIG 2 Codec in VB.NET

Comprehensive VB.NET Codes JBIG 2 Codec within .NET Imaging SDK

.NET Imaging Viewer
SDK & Add-Ons
Image Controls for:
JBIG 2 Codec technology developed by RasterEdge is an easy-to-use JBIG 2 encode and decode tool equipped with flexible functions:
JBIG 2
Here is a detailed VB.NET sample for encoding and decoding images with RasterEdge .NET Imaging SDK and JBIG 2 Codec. (For C#.NET developers, please go to JBIG 2 Codec for C#.NET. Want to view Image and document in Winforms or Web applications, please go to JBIG 2 Codec in Winforms and Web Document Image JBIG 2 Codec.)
Imports System.IO
Imports RasterEdge.Imaging
Imports RasterEdge.Imaging.Processing
Imports RasterEdge.Imaging.Jbig2

Create an JPEG 2000

If you want to create JBIG 2 images, please copy those following VB.NET codes:
Dim JBIG2 As JBIG2Decoder = New JBIG2Decoder()
RegisteredDecoders.Decoders.Add(JBIG2)

Getting Image Information

Image information can be easily detected with following VB.NET codes:
Dim info As JBIG2ImageInfo = CType(RegisteredDecoders.GetImageInfo("myimage.jbig2"), _JBIG2ImageInfo)
Console.WriteLine(info.FileFormat)

Reset JBIG 2 Decoder

If you want to reset JBIG 2 decoder, please copy following VB.NET codes:
Dim JBIG2 As JBIG2Decoder =
CType(RegisteredDecoders.GetDecoderFromType(typeof(JBIG2Decoder)), JBIG2Decoder);
JBIG2.ScaleFactor = JBIG2ScaleFactor.Half
More Tutorials!
Find more user guides with RasteEdge .NET Image SDK using VB.NET sample codings!
Want to install Imaging SDK in Winforms or Web applications, please go to Use Imaging SDK in Winforms and Web Document Image Viewer.