|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.color.ICC_Profile java.awt.color.ICC_ProfileGray
public class ICC_ProfileGray
Disabled: no SafeJ information.
A subclass of the ICC_Profile class which represents profiles which meet the following criteria: the color space type of the profile is TYPE_GRAY and the profile includes the grayTRCTag and mediaWhitePointTag tags. Examples of this kind of profile are monochrome input profiles, monochrome display profiles, and monochrome output profiles. The getInstance methods in the ICC_Profile class will return an ICC_ProfileGray object when the above conditions are met. The advantage of this class is that it provides a lookup table that Java or native methods may be able to use directly to optimize color conversion in some cases.
To transform from a GRAY device profile color space to the CIEXYZ Profile Connection Space, the device gray component is transformed by a lookup through the tone reproduction curve (TRC). The result is treated as the achromatic component of the PCS.
PCSY = grayTRC[deviceGray]The inverse transform is done by converting the PCS Y components to device Gray via the inverse of the grayTRC.
Field Summary |
---|
Method Summary | |
---|---|
float |
getGamma()
Returns a gamma value representing the tone reproduction curve (TRC). |
float[] |
getMediaWhitePoint()
Returns a float array of length 3 containing the X, Y, and Z components of the mediaWhitePointTag in the ICC profile. |
short[] |
getTRC()
Returns the TRC as an array of shorts. |
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 |
---|
public float[] getMediaWhitePoint()
public float getGamma()
gamma PCSY = deviceGray
ProfileDataException
- if the profile does not specify
the TRC as a single gamma value.public short[] getTRC()
ProfileDataException
- if the profile does not specify
the TRC as a table.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |