I am reading a CG4 (CALS Group IV bitmap) file and extracted the image data as an array of bytes. The image data is compressed using CCITT Group 4 (T.6) compression.
I don't believe libtiff.net has methods to just un-compress a set of compressed bytes. Is there a way to build a tiff header specifying CCITT Group 4 compression, and then slot in my existing compressed image data, to produce a valid tiff file?
Here is a sample that shows how to create black-and-white TIFF from your bytes
Please note that you must provide correct width, height, resolution and other values. And
ROWSPERSTRIP
must be correct too.