|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.pdfbox.pdmodel.graphics.color.PDColorSpace
org.apache.pdfbox.pdmodel.graphics.color.PDSeparation
public class PDSeparation
This class represents a Separation color space.
| Field Summary | |
|---|---|
static String |
NAME
The name of this color space. |
| Fields inherited from class org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace |
|---|
array |
| Constructor Summary | |
|---|---|
PDSeparation()
Constructor. |
|
PDSeparation(COSArray separation)
Constructor. |
|
| Method Summary | |
|---|---|
COSArray |
calculateColorValues(COSBase tintValue)
Returns the components of the color in the alternate colorspace for the given tint value. |
ColorModel |
createColorModel(int bpc)
Create a Java color model for this colorspace. |
protected ColorSpace |
createColorSpace()
Create a Java colorspace for this colorspace. |
PDColorSpace |
getAlternateColorSpace()
This will get the alternate color space for this separation. |
String |
getColorantName()
This will get the separation name. |
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. |
PDFunction |
getTintTransform()
This will get the tint transform function. |
void |
setAlternateColorSpace(PDColorSpace cs)
This will set the alternate color space. |
void |
setColorantName(String name)
This will set the separation name. |
void |
setTintTransform(PDFunction tint)
This will set the tint transform function. |
| Methods inherited from class org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace |
|---|
getCOSObject, getJavaColorSpace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String NAME
| Constructor Detail |
|---|
public PDSeparation()
public PDSeparation(COSArray separation)
separation - The array containing all separation information.| Method Detail |
|---|
public String getName()
getName in class PDColorSpace
public int getNumberOfComponents()
throws IOException
getNumberOfComponents in class PDColorSpaceIOException - If there is an error getting the number of color components.
protected 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 String getColorantName()
public void setColorantName(String name)
name - The separation name.
public PDColorSpace getAlternateColorSpace()
throws IOException
IOException - If there is an error getting the alternate color space.public void setAlternateColorSpace(PDColorSpace cs)
cs - The alternate color space.
public PDFunction getTintTransform()
throws IOException
IOException - If there is an error creating the PDFunctionpublic void setTintTransform(PDFunction tint)
tint - The tint transform function.
public COSArray calculateColorValues(COSBase tintValue)
throws IOException
tintValue - the tint value
IOException - If the tint function is not supported
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||