Class PhotometricInterpreterPalette
- java.lang.Object
-
- org.apache.commons.imaging.formats.tiff.photometricinterpreters.AbstractPhotometricInterpreter
-
- org.apache.commons.imaging.formats.tiff.photometricinterpreters.PhotometricInterpreterPalette
-
public final class PhotometricInterpreterPalette extends AbstractPhotometricInterpreter
-
-
Field Summary
Fields Modifier and Type Field Description private intbitsPerPixelMaskprivate int[]indexColorMapThe color map of integer ARGB values tied to the pixel index of the palette.-
Fields inherited from class org.apache.commons.imaging.formats.tiff.photometricinterpreters.AbstractPhotometricInterpreter
height, predictor, samplesPerPixel, width
-
-
Constructor Summary
Constructors Constructor Description PhotometricInterpreterPalette(int samplesPerPixel, int[] bitsPerSample, int predictor, int width, int height, int[] colorMap)Constructs a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinterpretPixel(ImageBuilder imageBuilder, int[] samples, int x, int y)-
Methods inherited from class org.apache.commons.imaging.formats.tiff.photometricinterpreters.AbstractPhotometricInterpreter
getBitsPerSample
-
-
-
-
Constructor Detail
-
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 thecolorMapis out of bounds.AllocationRequestException- Thrown when an allocation request exceeds theAllocatorlimit.
-
-
Method Detail
-
interpretPixel
public void interpretPixel(ImageBuilder imageBuilder, int[] samples, int x, int y) throws ImagingException, java.io.IOException
- Specified by:
interpretPixelin classAbstractPhotometricInterpreter- Throws:
ImagingExceptionjava.io.IOException
-
-