|
|||||||||||
| 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.PDIndexed
This class represents an Indexed color space.
| Field Summary | |
static String |
ABBREVIATED_NAME
The abbreviated name of this color space. |
static String |
NAME
The name of this color space. |
| Constructor Summary | |
PDIndexed()
Constructor, default DeviceRGB, hival 255. |
|
PDIndexed(COSArray indexedArray)
Constructor. |
|
| Method Summary | |
ColorModel |
createColorModel(int bpc)
Create a Java color model for this colorspace. |
ColorSpace |
createColorSpace()
Create a Java colorspace for this colorspace. |
PDColorSpace |
getBaseColorSpace()
This will get the color space that acts as the index for this color space. |
int |
getHighValue()
Get the highest value for the lookup. |
String |
getName()
This will return the name of the color space. |
int |
getNumberOfComponents()
This will return the number of color components. |
int |
lookupColor(int componentNumber,
int lookupIndex)
This will perform a lookup into the color lookup table. |
void |
setBaseColorSpace(PDColorSpace base)
This will set the base color space. |
void |
setHighValue(int high)
This will set the highest value that is allowed. |
void |
setLookupColor(int componentNumber,
int lookupIndex,
int color)
This will set a color in the color lookup table. |
| Methods inherited from class org.pdfbox.pdmodel.graphics.color.PDColorSpace |
getCOSObject |
| 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
public static final String ABBREVIATED_NAME
| Constructor Detail |
public PDIndexed()
public PDIndexed(COSArray indexedArray)
indexedArray - The array containing the indexed parameters| Method Detail |
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 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 PDColorSpace getBaseColorSpace()
throws IOException
IOException - If there is error creating the base color space.public void setBaseColorSpace(PDColorSpace base)
base - The base color space to use as the index.public int getHighValue()
public void setHighValue(int high)
high - The highest value for the lookup table.
public int lookupColor(int componentNumber,
int lookupIndex)
throws IOException
componentNumber - The component number, probably 1,2,3,3.lookupIndex - The zero-based index into the table, should not exceed the high value.
IOException - If there is an error looking up the color.
public void setLookupColor(int componentNumber,
int lookupIndex,
int color)
throws IOException
componentNumber - The component number, probably 1,2,3,3.lookupIndex - The zero-based index into the table, should not exceed the high value.color - The color that will go into the table.
IOException - If there is an error looking up the color.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||