Visual C#.NET: Compress, Decompress JBIG2 Images
How to compress, decompress JBIG2 images using C#.NET
Yiigo.Image for .NET provides advanced JBIG2 image compression & decompression support, allowing developers to compress, decompress to and from bi-tonal images & JBIG2 forma supported by this SDK. 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:
- Support JBIG2 files in *.jb2 and *.Jbig2
- Encode, decode single-page JBIG2 files
- Ability to JBIG2 streams encode and decode support in PDF documents
- Provide a better image quality at the same file size
JBIG2 Compression and Decompression with C#.NET Sample Code Requirements
Before using Yiigo.Imaging for .NET JBIG2 Plugin in Visual C#.NET, make sure that you have installed. Start to Compress JBIG 2 Images
- Open and run your Microsoft Visual Studio;
- Choose either "Visual C# Projects" in "New Project" dialog box;
- Choose "Windows Application" in the "Templates" List and name it "YiigoImagingeJBIGECompressionDecompressionCsharp";
- Right-click on the "References" folder, and select "Add Reference..." from the context menu in the "Solution Explorer" window;
- 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 Visual C# applications;
- Call Yiigo .NET Image Namespace & Copy those following codes:
using System.IO; using System.Drawing.Printing; using Yiigo.Imaging; using Yiigo.Imaging.Processing; using Yiigo.Imaging.Jbig2Codec.Encoder;
Jbig2Encoder Compression = new Jbig2Encoder(); Compression.Load(@"C:/1.jb2"); Compression.CompressionMode = CompressionMode.Lossless; Compression.save(); Start to Decompress JBIG 2 Images
using System.IO; using System.Drawing.Printing; using Yiigo.Imaging; using Yiigo.Imaging.Processing; using Yiigo.Imaging.Jbig2Codec.Decoder;
Jbig2Decoder Decompression = new Jbig2Decoder(); Deompression.Load(@"C:/1.jb2"); Deompression.save(); |