org.apache.batik.ext.awt.color

Class ICCColorSpaceExt

public class ICCColorSpaceExt extends ICC_ColorSpace

This class extends the ICCColorSpace class by providing convenience methods to convert to sRGB using various methods, forcing a givent intent, such as perceptual or relative colorimetric.
Field Summary
static intABSOLUTE_COLORIMETRIC
static intAUTO
static intPERCEPTUAL
static intRELATIVE_COLORIMETRIC
static intSATURATION
Constructor Summary
ICCColorSpaceExt(ICC_Profile p, int intent)
Method Summary
float[]absoluteColorimetricToRGB(float[] values)
Absolute colorimetric.
float[]intendedToRGB(float[] values)
Returns the sRGB value obtained by forcing the conversion method to the intent passed to the constructor
float[]perceptualToRGB(float[] values)
Perceptual conversion is the method implemented by the base class's toRGB method
float[]relativeColorimetricToRGB(float[] values)
Relative colorimetric needs to happen through CIEXYZ conversion
float[]saturationToRGB(float[] values)
Saturation.

Field Detail

ABSOLUTE_COLORIMETRIC

public static final int ABSOLUTE_COLORIMETRIC

AUTO

public static final int AUTO

PERCEPTUAL

public static final int PERCEPTUAL

RELATIVE_COLORIMETRIC

public static final int RELATIVE_COLORIMETRIC

SATURATION

public static final int SATURATION

Constructor Detail

ICCColorSpaceExt

public ICCColorSpaceExt(ICC_Profile p, int intent)

Method Detail

absoluteColorimetricToRGB

public float[] absoluteColorimetricToRGB(float[] values)
Absolute colorimetric. NOT IMPLEMENTED. Temporarily returns same as perceptual

intendedToRGB

public float[] intendedToRGB(float[] values)
Returns the sRGB value obtained by forcing the conversion method to the intent passed to the constructor

perceptualToRGB

public float[] perceptualToRGB(float[] values)
Perceptual conversion is the method implemented by the base class's toRGB method

relativeColorimetricToRGB

public float[] relativeColorimetricToRGB(float[] values)
Relative colorimetric needs to happen through CIEXYZ conversion

saturationToRGB

public float[] saturationToRGB(float[] values)
Saturation. NOT IMPLEMENTED. Temporarily returns same as perceptual.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.