This is a C# library for decoding JBig2 images. This type of image is mostly encountered in PDF files.
var dec = new JBIG2Decoder();
dec.decodeJBIG2(input_data);
if (dec.NumberOfPages > 0)
{
JBIG2Bitmap page = dec.GetPage(0);
byte[] data = page.getData(true);
int w = page.getWidth();
int h = page.getHeight();
...
}
While the project targets framework 4.8, it will work with older frameworks, possibly as far back as 1.0.
This was originally written for JPedal.