ICC_ProfileGray
class is a subclass of the ICC_Profile
class that 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. The
getInstance
methods in the ICC_Profile
class will return an
ICC_ProfileGray
object when the above conditions are met. Examples of
this kind of profile are monochrome input profiles, monochrome display
profiles, and monochrome output profiles.
The advantage of this class is that it provides a lookup table that Java or native methods can 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.
Modifier and Type | Field and Description |
---|---|
private static final long | serialVersionUID
Use serialVersionUID from JDK 1.2 for interoperability.
|
Access | Constructor and Description |
---|---|
pack-priv | |
pack-priv | ICC_ProfileGray(ProfileDeferralInfo pdi)
Constructs a new |
Modifier and Type | Method and Description |
---|---|
public float | Returns: the gamma value as a floatReturns a gamma value representing the tone reproduction curve (TRC). |
public float[] | Returns: an array containing the components of the mediaWhitePointTag in the ICC profileOverrides java. Returns a float array of length 3 containing the X, Y, and Z components of the mediaWhitePointTag in the ICC profile. |
public short[] |
serialVersionUID | back to summary |
---|---|
private static final long serialVersionUID Hides java. Use serialVersionUID from JDK 1.2 for interoperability. |
ICC_ProfileGray | back to summary |
---|---|
pack-priv ICC_ProfileGray(Profile p) Constructs a new |
ICC_ProfileGray | back to summary |
---|---|
pack-priv ICC_ProfileGray(ProfileDeferralInfo pdi) Constructs a new |
getGamma | back to summary |
---|---|
public float getGamma() Returns a gamma value representing the tone reproduction curve (TRC). If
the profile represents the TRC as a table rather than a single gamma
value, then an exception is thrown. In this case the actual table can be
obtained via gamma PCSY = deviceGray
|
getMediaWhitePoint | back to summary |
---|---|
public float[] getMediaWhitePoint() Overrides java. Returns a float array of length 3 containing the X, Y, and Z components of the mediaWhitePointTag in the ICC profile.
|
getTRC | back to summary |
---|---|
public short[] getTRC() Returns the TRC as an array of shorts. If the profile has specified the
TRC as linear (gamma = 1.0) or as a simple gamma value, this method
throws an exception, and the
|