java.awt.color
Class ICC_ProfileRGBjava.lang.Object | +--java.awt.color.ICC_Profile | +--java.awt.color.ICC_ProfileRGB
- All Implemented Interfaces:
- Serializable
- public class ICC_ProfileRGB
- extends ICC_Profile
The ICC_ProfileRGB class is a subclass of the ICC_Profile class that represents profiles which meet the following criteria:
The ICC_Profile getInstance method will return an ICC_ProfileRGB object when these conditions are met. Three-component, matrix-based input profiles and RGB display profiles are examples of this type of profile.
- The profile's color space type is RGB.
- The profile includes the redColorantTag, greenColorantTag, blueColorantTag, redTRCTag, greenTRCTag, blueTRCTag, and mediaWhitePointTag tags.
This profile class 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 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.
- See Also:
- Serialized Form
Field Summary
static int BLUECOMPONENT
Used to get a gamma value or TRC for the blue component.static int GREENCOMPONENT
Used to get a gamma value or TRC for the green component.static int REDCOMPONENT
Used to get a gamma value or TRC for the red component.