java.awt.color
Class ICC_ProfileRGB
- Serializable
ICC_ProfileRGB - a special case of ICC_Profiles.
The ICC_Profile.getInstance() method will return an instance of the
ICC_ProfileRGB subclass when all the following conditions are met:
The device color space of the profile is TYPE_RGB.
The profile contains red, green and blue ColorantTags.
The profile contains red, green and blue TRCTags.
The profile contains a mediaWhitePointTag included.
As per the ICC specification, the color space conversion can then
be done through the following method:
linearR = redTRC[deviceR]
linearG = greenTRC[deviceG]
linearB = blueTRC[deviceB]
TRC curves are either a single gamma value, or a 1-dimensional lookup table.
Followed by the matrix transform:
PCS = M*linear
Where PCS is the vector of profile color space (must be XYZ) coordinates,
linear is the vector of linear RGB coordinates, and the matrix M is
constructed from the ColorantTags, where the columns are red, green and
blue respectively, and the rows are X, Y and Z.
Note that if the profile contains a CLUT for the color space conversion,
it should be used instead, and the TRC information ignored.
CLASS_ABSTRACT , CLASS_COLORSPACECONVERSION , CLASS_DEVICELINK , CLASS_DISPLAY , CLASS_INPUT , CLASS_NAMEDCOLOR , CLASS_OUTPUT , icAbsoluteColorimetric , icCurveCount , icCurveData , icHdrAttributes , icHdrCmmId , icHdrColorSpace , icHdrCreator , icHdrDate , icHdrDeviceClass , icHdrFlags , icHdrIlluminant , icHdrMagic , icHdrManufacturer , icHdrModel , icHdrPcs , icHdrPlatform , icHdrRenderingIntent , icHdrSize , icHdrVersion , icPerceptual , icRelativeColorimetric , icSaturation , icSigAToB0Tag , icSigAToB1Tag , icSigAToB2Tag , icSigAbstractClass , icSigBToA0Tag , icSigBToA1Tag , icSigBToA2Tag , icSigBlueColorantTag , icSigBlueTRCTag , icSigCalibrationDateTimeTag , icSigCharTargetTag , icSigChromaticityTag , icSigCmyData , icSigCmykData , icSigColorSpaceClass , icSigCopyrightTag , icSigCrdInfoTag , icSigDeviceMfgDescTag , icSigDeviceModelDescTag , icSigDeviceSettingsTag , icSigDisplayClass , icSigGamutTag , icSigGrayData , icSigGrayTRCTag , icSigGreenColorantTag , icSigGreenTRCTag , icSigHead , icSigHlsData , icSigHsvData , icSigInputClass , icSigLabData , icSigLinkClass , icSigLuminanceTag , icSigLuvData , icSigMeasurementTag , icSigMediaBlackPointTag , icSigMediaWhitePointTag , icSigNamedColor2Tag , icSigNamedColorClass , icSigOutputClass , icSigOutputResponseTag , icSigPreview0Tag , icSigPreview1Tag , icSigPreview2Tag , icSigProfileDescriptionTag , icSigProfileSequenceDescTag , icSigPs2CRD0Tag , icSigPs2CRD1Tag , icSigPs2CRD2Tag , icSigPs2CRD3Tag , icSigPs2CSATag , icSigPs2RenderingIntentTag , icSigRedColorantTag , icSigRedTRCTag , icSigRgbData , icSigScreeningDescTag , icSigScreeningTag , icSigSpace2CLR , icSigSpace3CLR , icSigSpace4CLR , icSigSpace5CLR , icSigSpace6CLR , icSigSpace7CLR , icSigSpace8CLR , icSigSpace9CLR , icSigSpaceACLR , icSigSpaceBCLR , icSigSpaceCCLR , icSigSpaceDCLR , icSigSpaceECLR , icSigSpaceFCLR , icSigTechnologyTag , icSigUcrBgTag , icSigViewingCondDescTag , icSigViewingConditionsTag , icSigXYZData , icSigYCbCrData , icSigYxyData , icTagReserved , icTagType , icXYZNumberX |
float | getGamma(int component) - Returns the gamma value of a component
|
float[][] | getMatrix() - Returns the colorant matrix of the conversion.
|
float[] | getMediaWhitePoint() - Returns the media white point of the profile.
|
short[] | getTRC(int component) - Returns the TRC lookup table for a component
|
finalize , getColorSpaceType , getData , getData , getInstance , getInstance , getInstance , getInstance , getMajorVersion , getMinorVersion , getNumComponents , getPCSType , getProfileClass , readResolve , setData , write , write |
clone , equals , extends Object> getClass , finalize , hashCode , notify , notifyAll , toString , wait , wait , wait |
getGamma
public float getGamma(int component)
Returns the gamma value of a component
getMatrix
public float[][] getMatrix()
Returns the colorant matrix of the conversion.
getMediaWhitePoint
public float[] getMediaWhitePoint()
Returns the media white point of the profile.
getTRC
public short[] getTRC(int component)
Returns the TRC lookup table for a component
ICC_ProfileRGB.java -- the ICC profile for a RGB colorspace
Copyright (C) 2002, 2004 Free Software Foundation, Inc.
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.