ICC_ProfileRGB class is a subclass of the ICC_Profile
class that represents profiles which meet the following criteria: the
profile's color space type is RGB, and the profile includes the
redColorantTag, greenColorantTag, blueColorantTag,
redTRCTag, greenTRCTag, blueTRCTag,
mediaWhitePointTag tags. The getInstance methods in the
ICC_Profile class will return an ICC_ProfileRGB object when
the above conditions are met. Three-component, matrix-based input profiles
and RGB display profiles are examples of this type of profile.
The advantage of this class is that it provides color transform matrices and lookup tables that Java or native methods can use directly to optimize color conversion in some cases.
To transform from a device profile color space to the CIEXYZ Profile Connection Space, each device color component is first linearized by a lookup through the corresponding tone reproduction curve (TRC). The resulting linear RGB components are converted to the CIEXYZ PCS using a 3x3 matrix constructed from the RGB colorants.
linearR = redTRC[deviceR] linearG = greenTRC[deviceG] linearB = blueTRC[deviceB] _ _ _ _ _ _ [ PCSX ] [ redColorantX greenColorantX blueColorantX ] [ linearR ] [ ] [ ] [ ] [ PCSY ] = [ redColorantY greenColorantY blueColorantY ] [ linearG ] [ ] [ ] [ ] [_ PCSZ _] [_ redColorantZ greenColorantZ blueColorantZ _] [_ linearB _]The inverse transform is performed by converting PCS XYZ components to linear RGB components through the inverse of the above 3x3 matrix, and then converting linear RGB to device RGB through inverses of the TRCs.
| Modifier and Type | Field and Description |
|---|---|
| public static final int | BLUECOMPONENT
Used to get a gamma value or TRC for the blue component. |
| public static final int | GREENCOMPONENT
Used to get a gamma value or TRC for the green component. |
| public static final int | REDCOMPONENT
Used to get a gamma value or TRC for the red component. |
| private static final long | serialVersionUID
Use serialVersionUID from JDK 1.2 for interoperability.
|
| Access | Constructor and Description |
|---|---|
| pack-priv | ICC_ProfileRGB(Profile
the CMM profile used to create this ICC profile p)Constructs a new |
| pack-priv | ICC_ProfileRGB(BuiltinProfileInfo bpi)
Constructs a new |
| Modifier and Type | Method and Description |
|---|---|
| public float | Returns: the gamma value as a floatthe component)ICC_ProfileRGB constant that represents the
component whose TRC you want to retrieveOverrides java. Returns a gamma value representing the tone reproduction curve (TRC) for a particular component. |
| public float[][] | Returns: a 3x3float array that contains the x, y, and z
components of the profile's redColorantTag,
greenColorantTag, and blueColorantTagReturns a 3x3 |
| public float[] | Returns: a 3-elementfloat array containing the x, y, and z
components of the profile's mediaWhitePointTagOverrides java. Returns an array that contains the components of the profile's
|
| public short[] | Returns: a short array representing the TRCthe component)ICC_ProfileRGB constant that represents the
component whose TRC you want to retrieve: REDCOMPONENT,
GREENCOMPONENT, or BLUECOMPONENTOverrides java. Returns the TRC for a particular component as an array. |
| private static int | Returns: the tag signaturethe component)ICC_ProfileRGB constantConverts the |
| BLUECOMPONENT | back to summary |
|---|---|
| public static final int BLUECOMPONENT Used to get a gamma value or TRC for the blue component. | |
| GREENCOMPONENT | back to summary |
|---|---|
| public static final int GREENCOMPONENT Used to get a gamma value or TRC for the green component. | |
| REDCOMPONENT | back to summary |
|---|---|
| public static final int REDCOMPONENT Used to get a gamma value or TRC for the red component. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. Use serialVersionUID from JDK 1.2 for interoperability. | |
| ICC_ProfileRGB | back to summary |
|---|---|
| pack-priv ICC_ProfileRGB(Profile p) Constructs a new
| |
| ICC_ProfileRGB | back to summary |
|---|---|
| pack-priv ICC_ProfileRGB(BuiltinProfileInfo bpi) Constructs a new | |
| getGamma | back to summary |
|---|---|
| public float getGamma(int component) Overrides java. Returns a gamma value representing the tone reproduction curve (TRC) for
a particular component. The component parameter must be one of
If the profile represents the TRC for the corresponding component as a
table rather than a single gamma value, an exception is thrown. In this
case the actual table can be obtained through the gamma linearComponent = deviceComponent
| |
| getMatrix | back to summary |
|---|---|
| public float[][] getMatrix() Returns a 3x3 This matrix can be used for color transforms in the forward direction of the profile--from the profile color space to the CIEXYZ PCS.
| |
| getMediaWhitePoint | back to summary |
|---|---|
| public float[] getMediaWhitePoint() Overrides java. Returns an array that contains the components of the profile's
| |
| getTRC | back to summary |
|---|---|
| public short[] getTRC(int component) Overrides java. Returns the TRC for a particular component as an array. Component must be
If the profile has specified the corresponding TRC as linear (gamma =
1.0) or as a simple gamma value, this method throws an exception. In this
case, the
| |
| toTag | back to summary |
|---|---|
| private static int toTag(int component) Converts the
| |