java.awt.color
Class ICC_ProfileGray

java.lang.Object
  extended by java.awt.color.ICC_Profile
      extended by java.awt.color.ICC_ProfileGray
All Implemented Interfaces:
Serializable

public class ICC_ProfileGray
extends ICC_Profile

ICC_ProfileGray - a special case of ICC_Profiles. The ICC_Profile.getInstance() method will return an instance of the ICC_ProfileGray subclass when all the following conditions are met: The device color space of the profile is TYPE_GRAY. The profile contains a gray TRCTag. The profile contains a mediaWhitePointTag. As per the ICC specification, the color space conversion can then be done through the following method: linearGray = grayTRC[deviceGray] Note that if the profile contains a CLUT for the color space conversion, it should be used instead, and the TRC information ignored.

Since:
1.2
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.awt.color.ICC_Profile
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, icSigAbstractClass, icSigAToB0Tag, icSigAToB1Tag, icSigAToB2Tag, icSigBlueColorantTag, icSigBlueTRCTag, icSigBToA0Tag, icSigBToA1Tag, icSigBToA2Tag, 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
 
Method Summary
 float getGamma()
          Returns the TRC gamma value.
 float[] getMediaWhitePoint()
          Returns the media white point of the profile.
 short[] getTRC()
          Returns the TRC lookup table.
 
Methods inherited from class java.awt.color.ICC_Profile
finalize, getColorSpaceType, getData, getData, getInstance, getInstance, getInstance, getInstance, getMajorVersion, getMinorVersion, getNumComponents, getPCSType, getProfileClass, readResolve, setData, write, write
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getMediaWhitePoint

public float[] getMediaWhitePoint()
Returns the media white point of the profile.


getGamma

public float getGamma()
Returns the TRC gamma value.

Throws:
ProfileDataException - if the TRC is described by a lookup table and not a gamma value.

getTRC

public short[] getTRC()
Returns the TRC lookup table.

Throws:
ProfileDataException - if the TRC is described by a gamma value and not a lookup table.