JBIG 2 Codec technology developed by RasterEdge is an easy-to-use JBIG 2 encode and decode tool equipped with flexible functions:
- Read & Write JBIG 2 image and JBIG 2 multipage document
- Provide lossy compression and lossless compression modes
- Detect JPEG 2000 image resolution, color, position and quality
- Compress PDF files
- Set the coder options for faster compression / decompression
- More image compression & decompression functionality
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.)
- Start Visual Studio .NET (2005 or later version);
- Begin a new project with programming language - VB.NET;
- Add RasterEdge.DotNetImaging.dll & RasterEdge.DotNetImaging.jbig2.dll to your VB.NET applications;
- Add the appropriate Imports directive:
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.