ICC_ProfileRGBpublic class ICC_ProfileRGB extends ICC_Profile The ICC_ProfileRGB class represents profiles with RGB color space type and
contains the redColorantTag, greenColorantTag, blueColorantTag, redTRCTag,
greenTRCTag, blueTRCTag, and mediaWhitePointTag tags. |
Fields Summary |
---|
private static final long | serialVersionUIDThe Constant serialVersionUID. | public static final int | REDCOMPONENTThe Constant REDCOMPONENT indicates the red component. | public static final int | GREENCOMPONENTThe Constant GREENCOMPONENT indicates the green component. | public static final int | BLUECOMPONENTThe Constant BLUECOMPONENT indicates the blue component. | private static final String | UNKNOWN_COMPONENT_MSGThe Constant UNKNOWN_COMPONENT_MSG. |
Constructors Summary |
---|
ICC_ProfileRGB(long profileHandle)Instantiates a new RGB ICC_Profile.
super(profileHandle);
|
Methods Summary |
---|
public float | getGamma(int component)Gets the gamma.
switch (component) {
case REDCOMPONENT:
return super.getGamma(icSigRedTRCTag);
case GREENCOMPONENT:
return super.getGamma(icSigGreenTRCTag);
case BLUECOMPONENT:
return super.getGamma(icSigBlueTRCTag);
default:
}
throw new IllegalArgumentException(UNKNOWN_COMPONENT_MSG);
| public float[][] | getMatrix()Gets a float matrix which contains the X, Y, and Z components of the
profile's redColorantTag, greenColorantTag, and blueColorantTag.
float [][] m = new float[3][3]; // The matrix
float[] redXYZ = getXYZValue(icSigRedColorantTag);
float[] greenXYZ = getXYZValue(icSigGreenColorantTag);
float[] blueXYZ = getXYZValue(icSigBlueColorantTag);
m[0][0] = redXYZ[0];
m[1][0] = redXYZ[1];
m[2][0] = redXYZ[2];
m[0][1] = greenXYZ[0];
m[1][1] = greenXYZ[1];
m[2][1] = greenXYZ[2];
m[0][2] = blueXYZ[0];
m[1][2] = blueXYZ[1];
m[2][2] = blueXYZ[2];
return m;
| public float[] | getMediaWhitePoint()Gets the media white point.
return super.getMediaWhitePoint();
| public short[] | getTRC(int component)Gets the TRC. //$NON-NLS-1$
switch (component) {
case REDCOMPONENT:
return super.getTRC(icSigRedTRCTag);
case GREENCOMPONENT:
return super.getTRC(icSigGreenTRCTag);
case BLUECOMPONENT:
return super.getTRC(icSigBlueTRCTag);
default:
}
throw new IllegalArgumentException(UNKNOWN_COMPONENT_MSG);
|
|