0

I got the following information from Tiff file.

ImageWidth Short 2977
ImageLength Short 5613
BitsPerSample Short 2
Compression Short LZW  
PhotometricInterpretation Short WhiteIsZero
StripOffsets Long [(22)]
SamplesPerPixel Short 1
RowsPerStrip Short 256      
StripByteCounts Long [(22)]

So I think the image data total bytes is 22*256.

How can I decompress the image data for a new bitmap? Any help will be appreciated.

S Yu
  • 1
  • Where do you got this information from? Do you use .NET Framework or .NET Core? Do you have any code where you attempt to decompress the image? – Georgi Georgiev Nov 21 '18 at 18:53
  • Thanks your response! I got this informaition by .NET Framework (https://github.com/dgm9704/TIFF) . I have no proper decompress code in hand. Any decompress code in C# will be help. – S Yu Nov 22 '18 at 01:19
  • Following is the decode codes `private List LZW_Decoder(List tifStripData) { List uncompressedList = new List(); foreach (var stripe in tifStripData) { byte[] decodedBytes = OcfLzw.OcfLzw.Decode(stripe); uncompressedList.Add(decodedBytes); } return uncompressedList; }` – S Yu Nov 22 '18 at 01:40
  • [https://github.com/pgodwin/OcfLzw/tree/master/OcfLzw] – S Yu Nov 22 '18 at 04:02

0 Answers0