public class PDCalGray extends PDColorSpace
| Modifier and Type | Field and Description |
|---|---|
static String |
NAME
The name of this color space.
|
| Constructor and Description |
|---|
PDCalGray()
Constructor.
|
PDCalGray(COSArray gray)
Constructor with array.
|
| Modifier and Type | Method and Description |
|---|---|
ColorModel |
createColorModel(int bpc)
Create a Java color model for this colorspace.
|
protected ColorSpace |
createColorSpace()
Create a Java colorspace for this colorspace.
|
PDTristimulus |
getBlackPoint()
This will return the BlackPoint tristimulus.
|
COSBase |
getCOSObject()
Convert this standard java object to a COS object.
|
float |
getGamma()
This will get the gamma value.
|
String |
getName()
This will return the name of the color space.
|
int |
getNumberOfComponents()
This will get the number of components that this color space is made up of.
|
PDTristimulus |
getWhitepoint()
This will return the whitepoint tristimulus.
|
void |
setBlackPoint(PDTristimulus bp)
This will set the BlackPoint tristimulus.
|
void |
setGamma(float value)
Set the gamma value.
|
void |
setWhitepoint(PDTristimulus wp)
This will set the whitepoint tristimulus.
|
getJavaColorSpace, toStringpublic static final String NAME
public PDCalGray()
public PDCalGray(COSArray gray)
gray - The underlying color space.public int getNumberOfComponents()
throws IOException
getNumberOfComponents in class PDColorSpaceIOException - If there is an error getting the number of color components.public String getName()
getName in class PDColorSpaceprotected ColorSpace createColorSpace() throws IOException
createColorSpace in class PDColorSpaceIOException - If there is an error creating the color space.public ColorModel createColorModel(int bpc) throws IOException
createColorModel in class PDColorSpacebpc - The number of bits per component.IOException - If there is an error creating the color model.public COSBase getCOSObject()
getCOSObject in interface COSObjectablegetCOSObject in class PDColorSpacepublic float getGamma()
public void setGamma(float value)
value - The new gamma value.public PDTristimulus getWhitepoint()
public void setWhitepoint(PDTristimulus wp)
wp - The whitepoint tristimulus.public PDTristimulus getBlackPoint()
public void setBlackPoint(PDTristimulus bp)
bp - The BlackPoint tristimulus.Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.