Package com.itextpdf.io.codec
Class TIFFFaxDecoder
java.lang.Object
com.itextpdf.io.codec.TIFFFaxDecoder
Class that can decode TIFF files.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddecode1D(byte[] buffer, byte[] compData, int startX, int height) voiddecode2D(byte[] buffer, byte[] compData, int startX, int height, long tiffT4Options) voiddecodeNextScanline(byte[] buffer, int lineOffset, int bitOffset) voiddecodeT6(byte[] buffer, byte[] compData, int startX, int height, long tiffT6Options) static voidreverseBits(byte[] b) Reverses the bits in the arrayvoidsetRecoverFromImageError(boolean recoverFromImageError)
-
Field Details
-
flipTable
public static byte[] flipTable -
additionalMakeup
public static short[] additionalMakeup
-
-
Constructor Details
-
TIFFFaxDecoder
public TIFFFaxDecoder(int fillOrder, int w, int h) - Parameters:
-
fillOrder- The fill order of the compressed data bytes. -
w- width -
h- height
-
-
Method Details
-
reverseBits
public static void reverseBits(byte[] b) Reverses the bits in the array- Parameters:
-
b- the bits to reverse
-
decode1D
public void decode1D(byte[] buffer, byte[] compData, int startX, int height) -
decodeNextScanline
public void decodeNextScanline(byte[] buffer, int lineOffset, int bitOffset) -
decode2D
public void decode2D(byte[] buffer, byte[] compData, int startX, int height, long tiffT4Options) -
decodeT6
public void decodeT6(byte[] buffer, byte[] compData, int startX, int height, long tiffT6Options) -
setRecoverFromImageError
public void setRecoverFromImageError(boolean recoverFromImageError)
-