public final class PDCalGray extends PDCIEDictionaryBasedColorSpace
Modifier and Type | Field and Description |
---|---|
private PDColor |
initialColor |
private java.util.Map<java.lang.Float,float[]> |
map1 |
dictionary, wpX, wpY, wpZ
array
Constructor and Description |
---|
PDCalGray()
Create a new CalGray color space.
|
PDCalGray(COSArray array)
Creates a new CalGray color space using the given COS array.
|
Modifier and Type | Method and Description |
---|---|
float[] |
getDefaultDecode(int bitsPerComponent)
Returns the default decode array for this color space.
|
float |
getGamma()
This will get the gamma value.
|
PDColor |
getInitialColor()
Returns the initial color value for this color space.
|
java.lang.String |
getName()
Returns the name of the color space.
|
int |
getNumberOfComponents()
Returns the number of components in this color space
|
void |
setGamma(float value)
Set the gamma value.
|
float[] |
toRGB(float[] value)
Returns the RGB equivalent of the given color value.
|
convXYZtoRGB, getBlackPoint, getWhitepoint, setBlackPoint, setWhitePoint
toRGBImage, toString
create, create, create, getCOSObject, toRGBImageAWT
private final PDColor initialColor
private final java.util.Map<java.lang.Float,float[]> map1
public PDCalGray()
public PDCalGray(COSArray array)
array
- the COS array which represents this color spacepublic java.lang.String getName()
PDColorSpace
getName
in class PDColorSpace
public int getNumberOfComponents()
PDColorSpace
getNumberOfComponents
in class PDColorSpace
public float[] getDefaultDecode(int bitsPerComponent)
PDColorSpace
getDefaultDecode
in class PDColorSpace
bitsPerComponent
- the number of bits per component.public PDColor getInitialColor()
PDColorSpace
getInitialColor
in class PDColorSpace
public float[] toRGB(float[] value)
PDColorSpace
toRGB
in class PDColorSpace
value
- a color value with component values between 0 and 1public float getGamma()
public void setGamma(float value)
value
- The new gamma value.