|
|||||||||||
| 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.PDLab
This class represents a Lab color space.
| Field Summary | |
static String |
NAME
The name of this color space. |
| Constructor Summary | |
PDLab()
Constructor. |
|
PDLab(COSArray lab)
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. |
PDRange |
getARange()
This will get the valid range for the a component. |
PDTristimulus |
getBlackPoint()
This will return the BlackPoint tristimulus. |
PDRange |
getBRange()
This will get the valid range for the b component. |
COSBase |
getCOSObject()
Convert this standard java object to a COS object. |
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 |
setARange(PDRange range)
This will set the a range for this color space. |
void |
setBlackPoint(PDTristimulus bp)
This will set the BlackPoint tristimulus. |
void |
setBRange(PDRange range)
This will set the b range for this color space. |
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 PDLab()
public PDLab(COSArray lab)
lab - The underlying color space.| Method Detail |
public String getName()
getName in class PDColorSpacepublic COSBase getCOSObject()
getCOSObject in interface COSObjectablegetCOSObject in class PDColorSpace
public 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 int getNumberOfComponents()
throws IOException
getNumberOfComponents in class PDColorSpaceIOException - If there is an error getting the number of color components.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 PDRange getARange()
public void setARange(PDRange range)
range - The new range for the a component.public PDRange getBRange()
public void setBRange(PDRange range)
range - The new range for the b component.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||