public static int GetCompressionType(Image image)
{
int compressionTagIndex =
Array.IndexOf(image.PropertyIdList, 0x103);
PropertyItem compressionTag =
image.PropertyItems[compressionTagIndex];
return
BitConverter.ToInt16(compressionTag.Value, 0);
}
1: no compression
2: CCITT Group 3
3: Facsimile-compatible CCITT Group 3
4: CCITT Group 4 (T.6)
5: LZW
2: CCITT Group 3
3: Facsimile-compatible CCITT Group 3
4: CCITT Group 4 (T.6)
5: LZW
No comments:
Post a Comment