|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pdfbox.pdmodel.graphics.color.PDColorSpace
org.pdfbox.pdmodel.graphics.color.PDCalRGB
This class represents a Cal RGB color space.
Field Summary | |
static String |
NAME
The name of this color space. |
Constructor Summary | |
PDCalRGB()
Constructor. |
|
PDCalRGB(COSArray rgb)
Constructor with array. |
Method Summary | |
ColorModel |
createColorModel(int bpc)
Create a Java color model for this colorspace. |
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. |
PDGamma |
getGamma()
This will get the gamma value. |
PDMatrix |
getLinearInterpretation()
This will get the linear interpretation array. |
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(PDGamma value)
Set the gamma value. |
void |
setLinearInterpretation(PDMatrix matrix)
This will set the linear interpretation matrix. |
void |
setWhitepoint(PDTristimulus wp)
This will set the whitepoint tristimulus. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String NAME
Constructor Detail |
public PDCalRGB()
public PDCalRGB(COSArray rgb)
rgb
- The underlying color space.Method Detail |
public int getNumberOfComponents() throws IOException
getNumberOfComponents
in class PDColorSpace
IOException
- If there is an error getting the number of color components.public String getName()
getName
in class PDColorSpace
public ColorSpace createColorSpace() throws IOException
createColorSpace
in class PDColorSpace
IOException
- If there is an error creating the color space.public ColorModel createColorModel(int bpc) throws IOException
createColorModel
in class PDColorSpace
bpc
- The number of bits per component.
IOException
- If there is an error creating the color model.public COSBase getCOSObject()
getCOSObject
in interface COSObjectable
getCOSObject
in class PDColorSpace
public PDTristimulus getWhitepoint()
public void setWhitepoint(PDTristimulus wp)
wp
- The whitepoint tristimulus.public PDTristimulus getBlackPoint()
public void setBlackPoint(PDTristimulus bp)
bp
- The BlackPoint tristimulus.public PDGamma getGamma()
public void setGamma(PDGamma value)
value
- The new gamma value.public PDMatrix getLinearInterpretation()
public void setLinearInterpretation(PDMatrix matrix)
matrix
- The new linear interpretation matrix.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |