com.sun.pdfview.colorspace
public class CalRGBColor extends ColorSpace
Constructor Summary | |
---|---|
CalRGBColor(PDFObject obj)
Create a new Calibrated RGB color space object, given the
description in a PDF dictionary. |
Method Summary | |
---|---|
float[] | fromCIEXYZ(float[] colorvalue)
convert from CIEXYZ to Calibrated RGB. |
float[] | fromRGB(float[] rgbvalue)
convert from RGB to Calibrated RGB. |
float[] | toCIEXYZ(float[] colorvalue)
convert from Calibrated RGB to CIEXYZ. |
float[] | toRGB(float[] comp)
convert from Calibrated RGB to standard RGB |
Parameters: obj a dictionary that contains an array of 3 Numbers for "WhitePoint" and "BlackPoint", a Number for "Gamma", and an array of 9 Numbers for "Matrix".
Parameters: comp the Calibrated RGB values (0-1)
Returns: the RGB values (0-1)