APIdia Launch Partner
Top Description Constructors Methods
com.sun.imageio.plugins.tiff

public abstract Class TIFFColorConverter

extends Object
Class Inheritance
Known Direct Subclasses
com.sun.imageio.plugins.tiff.TIFFYCbCrColorConverter, com.sun.imageio.plugins.tiff.TIFFCIELabColorConverter

An abstract class that performs simple color conversion on 3-banded source images, for use with the TIFF Image I/O plug-in.

Constructor Summary

AccessConstructor and Description
public
TIFFColorConverter()

Constructs an instance of a TIFFColorConverter.

Method Summary

Modifier and TypeMethod and Description
public abstract void
fromRGB(float
the red value.
r
,
float
the green value.
g
,
float
the blue value.
b
,
float[]
an array of floats containing three elements.
result
)

Converts an RGB triple into the native color space of this TIFFColorConverter, and stores the result in the first three entries of the result array.

public abstract void
toRGB(float
the value of channel 0.
x0
,
float
the value of channel 1.
x1
,
float
the value of channel 2.
x2
,
float[]
an array of floats containing three elements.
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 the rgb array.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

TIFFColorConverterback to summary
public TIFFColorConverter()

Constructs an instance of a TIFFColorConverter.

Method Detail

fromRGBback to summary
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 the result array.

Parameters
r:float

the red value.

g:float

the green value.

b:float

the blue value.

result:float[]

an array of floats containing three elements.

Exceptions
NullPointerException:
if result is null.
ArrayIndexOutOfBoundsException:
if result.length < 3.
toRGBback to summary
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 the rgb array.

Parameters
x0:float

the value of channel 0.

x1:float

the value of channel 1.

x2:float

the value of channel 2.

rgb:float[]

an array of floats containing three elements.

Exceptions
NullPointerException:
if rgb is null.
ArrayIndexOutOfBoundsException:
if rgb.length < 3.