public class CalGray extends PColorSpace
| Modifier and Type | Field and Description |
|---|---|
static Name |
CAL_GRAY_KEY |
protected float |
gamma |
static Name |
GAMMA_KEY |
static Name |
MATRIX_KEY |
static Name |
WHITE_POINT_KEY |
protected float[] |
whitepoint |
entries, FORM_TYPE_KEY, inited, isDeleted, isNew, LENGTH_KEY, library, SUBTYPE_KEY, TYPE_KEY| Constructor and Description |
|---|
CalGray(Library l,
java.util.HashMap h) |
| Modifier and Type | Method and Description |
|---|---|
java.awt.Color |
getColor(float[] f,
boolean fillAndStroke) |
int |
getNumComponents() |
getColor, getColorSpace, getColorSpace, getDescription, normaliseComponentsToFloats, reverse, reverseInPlace, reverseInPlacegetEntries, getFloat, getInt, getLibrary, getNumber, getObject, getPObjectReference, init, isDeleted, isNew, setDeleted, setNew, setPObjectReference, toStringpublic static final Name WHITE_POINT_KEY
public static final Name GAMMA_KEY
public static final Name MATRIX_KEY
public static final Name CAL_GRAY_KEY
protected float[] whitepoint
protected float gamma
public CalGray(Library l, java.util.HashMap h)
public java.awt.Color getColor(float[] f,
boolean fillAndStroke)
getColor in class PColorSpacepublic int getNumComponents()
getNumComponents in class PColorSpace