com.sun.pdfview.colorspace

Class CalGrayColor

public class CalGrayColor extends ColorSpace

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

Constructor Detail

CalGrayColor

public CalGrayColor(PDFObject obj)
Create a new Calibrated Gray 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", and a Number for "Gamma"

CalGrayColor

public CalGrayColor()
Create a new calibrated gray color space object, with the default values for black point, white point and gamma

Method Detail

fromCIEXYZ

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

fromRGB

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

toCIEXYZ

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

toRGB

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

Parameters: comp the gray value (0-1)

Returns: the RGB values (0-1)