com.sun.pdfview.colorspace

Class CalRGBColor

public class CalRGBColor extends ColorSpace

A ColorSpace for calibrated RGB
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

Constructor Detail

CalRGBColor

public CalRGBColor(PDFObject obj)
Create a new Calibrated RGB color space object, given the description in a PDF dictionary.

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".

Method Detail

fromCIEXYZ

public float[] fromCIEXYZ(float[] colorvalue)
convert from CIEXYZ to Calibrated RGB. NOT IMPLEMENTED

fromRGB

public float[] fromRGB(float[] rgbvalue)
convert from RGB to Calibrated RGB. NOT IMPLEMENTED

toCIEXYZ

public float[] toCIEXYZ(float[] colorvalue)
convert from Calibrated RGB to CIEXYZ. NOT IMPLEMENTED

toRGB

public float[] toRGB(float[] comp)
convert from Calibrated RGB to standard RGB

Parameters: comp the Calibrated RGB values (0-1)

Returns: the RGB values (0-1)