java.awt.color

Class ICC_ProfileGray

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

Method Summary
floatgetGamma()
Returns the TRC gamma value.
float[]getMediaWhitePoint()
Returns the media white point of the profile.
short[]getTRC()
Returns the TRC lookup table.

Method Detail

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.

getMediaWhitePoint

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

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.