Class TIFFColorConverter
- java.lang.Object
-
- com.github.jaiimageio.plugins.tiff.TIFFColorConverter
-
- Direct Known Subclasses:
TIFFCIELabColorConverter,TIFFYCbCrColorConverter
public abstract class TIFFColorConverter extends java.lang.ObjectAn abstract class that performs simple color conversion on 3-banded source images, for use with the TIFF Image I/O plug-in.
-
-
Constructor Summary
Constructors Constructor Description TIFFColorConverter()Constructs an instance of aTIFFColorConverter.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract voidfromRGB(float r, float g, float b, float[] result)Converts an RGB triple into the native color space of this TIFFColorConverter, and stores the result in the first three entries of theresultarray.abstract voidtoRGB(float x0, float x1, float x2, float[] rgb)Converts a triple in the native color space of this TIFFColorConverter into an RGB triple, and stores the result in the first three entries of thergbarray.
-
-
-
Method Detail
-
fromRGB
public abstract void fromRGB(float r, float g, float b, float[] result)Converts an RGB triple into the native color space of this TIFFColorConverter, and stores the result in the first three entries of theresultarray.- Parameters:
r- the red value.g- the green value.b- the blue value.result- an array offloats containing three elements.- Throws:
java.lang.NullPointerException- ifresultisnull.java.lang.ArrayIndexOutOfBoundsException- ifresult.length < 3.
-
toRGB
public abstract void toRGB(float x0, float x1, float x2, float[] rgb)Converts a triple in the native color space of this TIFFColorConverter into an RGB triple, and stores the result in the first three entries of thergbarray.- Parameters:
x0- the value of channel 0.x1- the value of channel 1.x2- the value of channel 2.rgb- an array offloats containing three elements.- Throws:
java.lang.NullPointerException- ifrgbisnull.java.lang.ArrayIndexOutOfBoundsException- ifrgb.length < 3.
-
-