COSObjectablepublic class PDCalRGB extends PDCIEDictionaryBasedColorSpace
dictionary, wpX, wpY, wpZarray| Constructor | Description |
|---|---|
PDCalRGB() |
Creates a new CalRGB color space.
|
PDCalRGB(COSArray rgb) |
Creates a new CalRGB color space using the given COS array.
|
| Modifier and Type | Method | Description |
|---|---|---|
float[] |
getDefaultDecode(int bitsPerComponent) |
Returns the default decode array for this color space.
|
PDGamma |
getGamma() |
Returns the gamma value.
|
PDColor |
getInitialColor() |
Returns the initial color value for this color space.
|
float[] |
getMatrix() |
Returns the linear interpretation matrix, which is an array of nine numbers.
|
java.lang.String |
getName() |
Returns the name of the color space.
|
int |
getNumberOfComponents() |
Returns the number of components in this color space
|
void |
setGamma(PDGamma gamma) |
Sets the gamma value.
|
void |
setMatrix(Matrix matrix) |
Sets the linear interpretation matrix.
|
float[] |
toRGB(float[] value) |
Returns the RGB equivalent of the given color value.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waittoRGBImage, toStringconvXYZtoRGB, getBlackPoint, getWhitepoint, setBlackPoint, setWhitePointcreate, create, create, getCOSObject, toRGBImageAWTpublic PDCalRGB()
public PDCalRGB(COSArray rgb)
rgb - the cos array which represents this color spacepublic java.lang.String getName()
PDColorSpacegetName in class PDColorSpacepublic int getNumberOfComponents()
PDColorSpacegetNumberOfComponents in class PDColorSpacepublic float[] getDefaultDecode(int bitsPerComponent)
PDColorSpacegetDefaultDecode in class PDColorSpacebitsPerComponent - the number of bits per component.public PDColor getInitialColor()
PDColorSpacegetInitialColor in class PDColorSpacepublic float[] toRGB(float[] value)
PDColorSpacetoRGB in class PDColorSpacevalue - a color value with component values between 0 and 1public final PDGamma getGamma()
public final float[] getMatrix()
public final void setGamma(PDGamma gamma)
gamma - the new gamma valuepublic final void setMatrix(Matrix matrix)
matrix - the new linear interpretation matrix, or nullCopyright © 2002–2018. All rights reserved.