com.sun.pdfview.colorspace
public class LabColor extends ColorSpace
Constructor Summary | |
---|---|
LabColor(PDFObject obj)
Create a new Lab color space object, given the description in
a PDF dictionary. |
Method Summary | |
---|---|
float[] | fromCIEXYZ(float[] colorvalue)
convert from CIEXYZ to Lab. |
float[] | fromRGB(float[] rgbvalue)
convert from RGB to Lab. |
float | stage2(float s1)
Stage 2 of the conversion algorithm. |
float[] | toCIEXYZ(float[] colorvalue)
convert from Lab to CIEXYZ. |
float[] | toRGB(float[] comp)
convert from Lab to RGB |
Parameters: obj a dictionary that contains an Array of 3 Numbers for "WhitePoint" and "BlackPoint", and an array of 4 Numbers for "Range".
Parameters: comp the Lab values (0-1)
Returns: the RGB values (0-1)