Class PhotometricInterpreter
java.lang.Object
org.apache.commons.imaging.formats.tiff.photometricinterpreters.PhotometricInterpreter
- Direct Known Subclasses:
PhotometricInterpreterBiLevel,PhotometricInterpreterCieLab,PhotometricInterpreterCmyk,PhotometricInterpreterFloat,PhotometricInterpreterLogLuv,PhotometricInterpreterPalette,PhotometricInterpreterRgb,PhotometricInterpreterYCbCr
Interpreter for photometric information in TIFF images. The photometric
interpretation tag is a requirement for valid TIFF images, and defines the
color space of the image data.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int[]protected final intprotected final intprotected final intprotected final int -
Constructor Summary
ConstructorsConstructorDescriptionPhotometricInterpreter(int samplesPerPixel, int[] bitsPerSample, int predictor, int width, int height) -
Method Summary
Modifier and TypeMethodDescriptionprotected intgetBitsPerSample(int offset) abstract voidinterpretPixel(ImageBuilder imageBuilder, int[] samples, int x, int y)
-
Field Details
-
samplesPerPixel
protected final int samplesPerPixel -
bitsPerSample
private final int[] bitsPerSample -
predictor
protected final int predictor -
width
protected final int width -
height
protected final int height
-
-
Constructor Details
-
PhotometricInterpreter
public PhotometricInterpreter(int samplesPerPixel, int[] bitsPerSample, int predictor, int width, int height)
-
-
Method Details
-
interpretPixel
public abstract void interpretPixel(ImageBuilder imageBuilder, int[] samples, int x, int y) throws ImageReadException, IOException - Throws:
ImageReadExceptionIOException
-
getBitsPerSample
protected int getBitsPerSample(int offset)
-