org.icepdf.core.pobjects.graphics
Class CalGray

java.lang.Object
  extended by org.icepdf.core.pobjects.Dictionary
      extended by org.icepdf.core.pobjects.graphics.PColorSpace
          extended by org.icepdf.core.pobjects.graphics.CalGray

public class CalGray
extends PColorSpace

A CalGray colour space (PDF 1.1) is a special case of a single-component CIE-based colour space, known as a CIE-based A colour space. This type of space is the one-dimensional (and usually achromatic) analog of CIE-based ABC spaces. Colour values in a CIE-based A space shall have a single component, arbitrarily named A.Figure 23 illustrates the transformations of the A component to X, Y, and Z components of the CIE 1931 XYZ space.

Since:
5.0.1

Field Summary
static Name CAL_GRAY_KEY
           
protected  float gamma
           
static Name GAMMA_KEY
           
static Name MATRIX_KEY
           
static Name WHITE_POINT_KEY
           
protected  float[] whitepoint
           
 
Fields inherited from class org.icepdf.core.pobjects.Dictionary
entries, FORM_TYPE_KEY, inited, isDeleted, isNew, LENGTH_KEY, library, SUBTYPE_KEY, TYPE_KEY
 
Constructor Summary
CalGray(Library l, java.util.HashMap h)
           
 
Method Summary
 java.awt.Color getColor(float[] f, boolean fillAndStroke)
           
 int getNumComponents()
           
 
Methods inherited from class org.icepdf.core.pobjects.graphics.PColorSpace
getColor, getColorSpace, getColorSpace, getDescription, normaliseComponentsToFloats, reverse, reverseInPlace, reverseInPlace
 
Methods inherited from class org.icepdf.core.pobjects.Dictionary
getEntries, getFloat, getInt, getLibrary, getNumber, getObject, getPObjectReference, init, isDeleted, isNew, setDeleted, setNew, setPObjectReference, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

WHITE_POINT_KEY

public static final Name WHITE_POINT_KEY

GAMMA_KEY

public static final Name GAMMA_KEY

MATRIX_KEY

public static final Name MATRIX_KEY

CAL_GRAY_KEY

public static final Name CAL_GRAY_KEY

whitepoint

protected float[] whitepoint

gamma

protected float gamma
Constructor Detail

CalGray

public CalGray(Library l,
               java.util.HashMap h)
Method Detail

getColor

public java.awt.Color getColor(float[] f,
                               boolean fillAndStroke)
Specified by:
getColor in class PColorSpace

getNumComponents

public int getNumComponents()
Specified by:
getNumComponents in class PColorSpace
Returns: