com.sun.pdfview.colorspace
public class CalGrayColor extends ColorSpace
Constructor Summary | |
---|---|
CalGrayColor(PDFObject obj)
Create a new Calibrated Gray color space object, given
the description in a PDF dictionary. | |
CalGrayColor()
Create a new calibrated gray color space object, with the
default values for black point, white point and gamma |
Method Summary | |
---|---|
float[] | fromCIEXYZ(float[] colorvalue)
convert from CIEXYZ to Calibrated Gray. |
float[] | fromRGB(float[] rgbvalue)
convert from RGB to Calibrated Gray. |
float[] | toCIEXYZ(float[] colorvalue)
convert from Calibrated Gray to CIEXYZ. |
float[] | toRGB(float[] comp)
convert from Calibrated Gray to RGB. |
Parameters: obj a dictionary that contains an Array of 3 Numbers for "WhitePoint" and "BlackPoint", and a Number for "Gamma"
Parameters: comp the gray value (0-1)
Returns: the RGB values (0-1)