Class PhotometricInterpreterPalette
java.lang.Object
org.apache.commons.imaging.formats.tiff.photometricinterpreters.AbstractPhotometricInterpreter
org.apache.commons.imaging.formats.tiff.photometricinterpreters.PhotometricInterpreterPalette
-
Field Summary
Fields inherited from class org.apache.commons.imaging.formats.tiff.photometricinterpreters.AbstractPhotometricInterpreter
height, predictor, samplesPerPixel, width
-
Constructor Summary
ConstructorsConstructorDescriptionPhotometricInterpreterPalette
(int samplesPerPixel, int[] bitsPerSample, int predictor, int width, int height, int[] colorMap) Constructs a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
interpretPixel
(ImageBuilder imageBuilder, int[] samples, int x, int y) Methods inherited from class org.apache.commons.imaging.formats.tiff.photometricinterpreters.AbstractPhotometricInterpreter
getBitsPerSample
-
Constructor Details
-
PhotometricInterpreterPalette
public PhotometricInterpreterPalette(int samplesPerPixel, int[] bitsPerSample, int predictor, int width, int height, int[] colorMap) Constructs a new instance.- Parameters:
samplesPerPixel
- Samples per pixel.bitsPerSample
- Bits per sample.predictor
- TODOwidth
- TODOheight
- TODOcolorMap
- TODO- Throws:
ImagingFormatException
- if an index into thecolorMap
is out of bounds.AllocationRequestException
- Thrown when an allocation request exceeds theAllocator
limit.
-
-
Method Details
-
interpretPixel
public void interpretPixel(ImageBuilder imageBuilder, int[] samples, int x, int y) throws ImagingException, IOException - Specified by:
interpretPixel
in classAbstractPhotometricInterpreter
- Throws:
ImagingException
IOException
-