| com.sun.pdfview.colorspace.CalGrayColor
CalGrayColor | public class CalGrayColor extends ColorSpace (Code) | | A ColorSpace for calibrated gray
author: Mike Wessler |
Constructor Summary | |
public | CalGrayColor(PDFObject obj) Create a new Calibrated Gray color space object, given
the description in a PDF dictionary. | public | CalGrayColor() |
Method Summary | |
public float[] | fromCIEXYZ(float[] colorvalue) convert from CIEXYZ to Calibrated Gray. | public float[] | fromRGB(float[] rgbvalue) convert from RGB to Calibrated Gray. | public int | getNumComponents() get the number of components (1). | public int | getType() | public float[] | toCIEXYZ(float[] colorvalue) convert from Calibrated Gray to CIEXYZ. | public float[] | toRGB(float comp) convert from Calibrated Gray to RGB. |
cie | static ColorSpace cie(Code) | | |
CalGrayColor | public CalGrayColor(PDFObject obj) throws IOException(Code) | | 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 Numbersfor "WhitePoint" and "BlackPoint", and a Number for "Gamma" |
CalGrayColor | public CalGrayColor()(Code) | | Create a new calibrated gray color space object, with the
default values for black point, white point and gamma
|
fromCIEXYZ | public float[] fromCIEXYZ(float[] colorvalue)(Code) | | convert from CIEXYZ to Calibrated Gray. NOT IMPLEMENTED
|
fromRGB | public float[] fromRGB(float[] rgbvalue)(Code) | | convert from RGB to Calibrated Gray. NOT IMPLEMENTED
|
getNumComponents | public int getNumComponents()(Code) | | get the number of components (1).
|
getType | public int getType()(Code) | | get the type of this ColorSpace (TYPE_GRAY)
|
toCIEXYZ | public float[] toCIEXYZ(float[] colorvalue)(Code) | | convert from Calibrated Gray to CIEXYZ. NOT IMPLEMENTED
|
toRGB | public float[] toRGB(float comp)(Code) | | convert from Calibrated Gray to RGB.
Parameters: comp - the gray value (0-1) the RGB values (0-1) |
|
|