Class AbstractPhotometricInterpreter
- java.lang.Object
-
- org.apache.commons.imaging.formats.tiff.photometricinterpreters.AbstractPhotometricInterpreter
-
- Direct Known Subclasses:
PhotometricInterpreterBiLevel,PhotometricInterpreterCieLab,PhotometricInterpreterCmyk,PhotometricInterpreterFloat,PhotometricInterpreterLogLuv,PhotometricInterpreterPalette,PhotometricInterpreterRgb,PhotometricInterpreterYCbCr
public abstract class AbstractPhotometricInterpreter extends java.lang.ObjectInterpreter 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.
-
-
Field Summary
Fields Modifier and Type Field Description private int[]bitsPerSampleprotected intheightprotected intpredictorprotected intsamplesPerPixelprotected intwidth
-
Constructor Summary
Constructors Constructor Description AbstractPhotometricInterpreter(int samplesPerPixel, int[] bitsPerSample, int predictor, int width, int height)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected intgetBitsPerSample(int offset)abstract voidinterpretPixel(ImageBuilder imageBuilder, int[] samples, int x, int y)
-
-
-
Method Detail
-
getBitsPerSample
protected int getBitsPerSample(int offset)
-
interpretPixel
public abstract void interpretPixel(ImageBuilder imageBuilder, int[] samples, int x, int y) throws ImagingException, java.io.IOException
- Throws:
ImagingExceptionjava.io.IOException
-
-