| Modifier and Type | Field and Description |
|---|---|
| private final PDColor | |
| private final Map |
| 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 float | |
| public PDColor | getInitialColor()
Implements abstract org. Returns the initial color value for this color space. |
| 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 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 | |
| map1 | back to summary |
|---|---|
| private final Map<Float, float[]> map1 | |
| PDCalGray | back to summary |
|---|---|
| public PDCalGray() Create a new CalGray color space. | |
| PDCalGray | back to summary |
|---|---|
| public PDCalGray(COSArray array) Creates a new CalGray 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 float getGamma() This will get the gamma value. If none is present then the default of 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. | |
| 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 void setGamma(float value) Set the gamma value.
| |
| toRGB | back to summary |
|---|---|
| public float[] toRGB(float[] value) Implements abstract org. Doc from org. Returns the RGB equivalent of the given color value.
| |