java.awt.color
Class ICC_ColorSpace
- Serializable
ICC_ColorSpace - an implementation of ColorSpace
While an ICC_Profile class abstracts the data in an ICC profile file
an ICC_ColorSpace performs the color space conversions defined by
an ICC_Profile instance.
Typically, an ICC_Profile will either be created using getInstance,
either from the built-in colorspaces, or from an ICC profile file.
Then a ICC_Colorspace will be used to perform transforms from the
device colorspace to and from the profile color space.
The PCS used by ColorSpace is CIE XYZ relative a D50 white point.
(Profiles using a CIE Lab PCS will have their input and output converted
to D50 CIE XYZ accordingly.
Note that a valid profile may not contain transforms in both directions,
in which case the output may be undefined.
All built-in colorspaces have bidirectional transforms, but developers
using an ICC profile file may want to check the profile class using
the ICC_Profile.getProfileClass() method. Input class profiles are
guaranteed to have transforms to the PCS, output class profiles are
guaranteed to have transforms from the PCS to device space.
CS_CIEXYZ , CS_GRAY , CS_LINEAR_RGB , CS_PYCC , CS_sRGB , TYPE_2CLR , TYPE_3CLR , TYPE_4CLR , TYPE_5CLR , TYPE_6CLR , TYPE_7CLR , TYPE_8CLR , TYPE_9CLR , TYPE_ACLR , TYPE_BCLR , TYPE_CCLR , TYPE_CMY , TYPE_CMYK , TYPE_DCLR , TYPE_ECLR , TYPE_FCLR , TYPE_GRAY , TYPE_HLS , TYPE_HSV , TYPE_Lab , TYPE_Luv , TYPE_RGB , TYPE_XYZ , TYPE_YCbCr , TYPE_Yxy |
float[] | fromCIEXYZ(float[] colorvalue) - Transforms a color value assumed to be in the CS_CIEXYZ conversion color
space into this ColorSpace.
|
float[] | fromRGB(float[] rgbvalue) - Transforms a color value assumed to be in the default CS_sRGB color space
into this ColorSpace.
|
float | getMaxValue(int idx) - Returns the maximum normalized color component value for the specified
component.
|
float | getMinValue(int idx) - Returns the minimum normalized color component value for the specified
component.
|
ICC_Profile | getProfile() - Return the profile
|
boolean | isCS_sRGB()
|
float[] | toCIEXYZ(float[] colorvalue) - Transforms a color value assumed to be in this ColorSpace into the
CS_CIEXYZ conversion color space.
|
float[] | toRGB(float[] colorvalue) - Transforms a color value assumed to be in this ColorSpace into a value in
the default CS_sRGB color space.
|
fromCIEXYZ , fromRGB , getInstance , getMaxValue , getMinValue , getName , getNumComponents , getType , isCS_sRGB , toCIEXYZ , toRGB |
clone , equals , extends Object> getClass , finalize , hashCode , notify , notifyAll , toString , wait , wait , wait |
fromCIEXYZ
public float[] fromCIEXYZ(float[] colorvalue)
Transforms a color value assumed to be in the CS_CIEXYZ conversion color
space into this ColorSpace.
- fromCIEXYZ in interface ColorSpace
fromRGB
public float[] fromRGB(float[] rgbvalue)
Transforms a color value assumed to be in the default CS_sRGB color space
into this ColorSpace.
- fromRGB in interface ColorSpace
getMaxValue
public float getMaxValue(int idx)
Returns the maximum normalized color component value for the specified
component.
- getMaxValue in interface ColorSpace
getMinValue
public float getMinValue(int idx)
Returns the minimum normalized color component value for the specified
component.
- getMinValue in interface ColorSpace
toCIEXYZ
public float[] toCIEXYZ(float[] colorvalue)
Transforms a color value assumed to be in this ColorSpace into the
CS_CIEXYZ conversion color space.
- toCIEXYZ in interface ColorSpace
toRGB
public float[] toRGB(float[] colorvalue)
Transforms a color value assumed to be in this ColorSpace into a value in
the default CS_sRGB color space.
- toRGB in interface ColorSpace
ICC_ColorSpace.java -- the canonical color space implementation
Copyright (C) 2000, 2002, 2004 Free Software Foundation
This file is part of GNU Classpath.
GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
GNU Classpath is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with GNU Classpath; see the file COPYING. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301 USA.
Linking this library statically or dynamically with other modules is
making a combined work based on this library. Thus, the terms and
conditions of the GNU General Public License cover the whole
combination.
As a special exception, the copyright holders of this library give you
permission to link this library with independent modules to produce an
executable, regardless of the license terms of these independent
modules, and to copy and distribute the resulting executable under
terms of your choice, provided that you also meet, for each linked
independent module, the terms and conditions of the license of that
module. An independent module is a module which is not derived from
or based on this library. If you modify this library, you may extend
this exception to your version of the library, but you are not
obligated to do so. If you do not wish to do so, delete this
exception statement from your version.