org.apache.pdfbox.pdmodel.graphics.color
public class: ColorSpaceCalRGB [javadoc |
source]
java.lang.Object
java.awt.color.ColorSpace
org.apache.pdfbox.pdmodel.graphics.color.ColorSpaceCalRGB
All Implemented Interfaces:
Serializable
This class represents a CalRGB color space.
In the first place this implementation is needed to support CalRGB.
To keep it simple, the CalRGB colorspace is treated similar to a DeviceRGB colorspace.
There is no conversion including the gamma, whitepoint, blackpoint or matrix values yet.
This should be suitable for displaying and simple printings.
Fields inherited from java.awt.color.ColorSpace: |
---|
serialVersionUID, TYPE_XYZ, TYPE_Lab, TYPE_Luv, TYPE_YCbCr, TYPE_Yxy, TYPE_RGB, TYPE_GRAY, TYPE_HSV, TYPE_HLS, TYPE_CMYK, TYPE_CMY, TYPE_2CLR, TYPE_3CLR, TYPE_4CLR, TYPE_5CLR, TYPE_6CLR, TYPE_7CLR, TYPE_8CLR, TYPE_9CLR, TYPE_ACLR, TYPE_BCLR, TYPE_CCLR, TYPE_DCLR, TYPE_ECLR, TYPE_FCLR, CS_sRGB, CS_LINEAR_RGB, CS_CIEXYZ, CS_PYCC, CS_GRAY |
Methods from java.awt.color.ColorSpace: |
---|
fromCIEXYZ, fromRGB, getInstance, getMaxValue, getMinValue, getName, getNumComponents, getType, isCS_CIEXYZ, isCS_sRGB, toCIEXYZ, toRGB |
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from org.apache.pdfbox.pdmodel.graphics.color.ColorSpaceCalRGB Detail: |
public float[] fromCIEXYZ(float[] colorvalue) {
if (colorvalue != null && colorvalue.length == 3)
{
// We have to convert from XYV to RGB
return fromCIEXYZtoRGB(colorvalue);
}
return null;
}
|
public float[] fromRGB(float[] rgbvalue) {
if (rgbvalue != null && rgbvalue.length == 3)
{
return rgbvalue;
}
return null;
}
|
public float[] toCIEXYZ(float[] colorvalue) {
if (colorvalue != null && colorvalue.length == 4)
{
// We have to convert from RGB to XYV
return fromRGBtoCIEXYZ(toRGB(colorvalue));
}
return null;
}
|
public float[] toRGB(float[] colorvalue) {
if (colorvalue != null && colorvalue.length == 3)
{
return colorvalue;
}
return null;
}
|