| Modifier and Type | Field and Description |
|---|---|
| private final PDColor |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public float[] | getDefaultDecode(int
the number of bits per component. bitsPerComponent)Implements abstract org. Returns the default decode array for this color space. |
| public final PDGamma | |
| public PDColor | getInitialColor()
Implements abstract org. Returns the initial color value for this color space. |
| public final float[] | Returns: the linear interpretation matrixReturns the linear interpretation matrix, which is an array of nine numbers. |
| public String | getName()
Implements abstract org. Returns the name of the color space. |
| public int | getNumberOfComponents()
Implements abstract org. Returns the number of components in this color space |
| public final void | |
| public final void | |
| public float[] | toRGB(float[]
a color value with component values between 0 and 1 value)Implements abstract org. Returns the RGB equivalent of the given color value. |
| initialColor | back to summary |
|---|---|
| private final PDColor initialColor | |
| PDCalRGB | back to summary |
|---|---|
| public PDCalRGB() Creates a new CalRGB color space. | |
| PDCalRGB | back to summary |
|---|---|
| public PDCalRGB(COSArray rgb) Creates a new CalRGB color space using the given COS array.
| |
| getDefaultDecode | back to summary |
|---|---|
| public float[] getDefaultDecode(int bitsPerComponent) Implements abstract org. Doc from org. Returns the default decode array for this color space.
| |
| getGamma | back to summary |
|---|---|
| public final PDGamma getGamma() Returns the gamma value. If none is present then the default of 1,1,1 will be returned.
| |
| getInitialColor | back to summary |
|---|---|
| public PDColor getInitialColor() Implements abstract org. Doc from org. Returns the initial color value for this color space. | |
| getMatrix | back to summary |
|---|---|
| public final float[] getMatrix() Returns the linear interpretation matrix, which is an array of nine numbers. If the underlying dictionary contains null then the identity matrix will be returned.
| |
| getName | back to summary |
|---|---|
| public String getName() Implements abstract org. Doc from org. Returns the name of the color space. | |
| getNumberOfComponents | back to summary |
|---|---|
| public int getNumberOfComponents() Implements abstract org. Doc from org. Returns the number of components in this color space
| |
| setGamma | back to summary |
|---|---|
| public final void setGamma(PDGamma gamma) Sets the gamma value.
| |
| setMatrix | back to summary |
|---|---|
| public final void setMatrix(Matrix matrix) Sets the linear interpretation matrix. Passing in null will clear the matrix.
| |
| toRGB | back to summary |
|---|---|
| public float[] toRGB(float[] value) Implements abstract org. Doc from org. Returns the RGB equivalent of the given color value.
| |