|
||||||||||
| 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
public class PDIndexed
This class represents an Indexed color space.
| Field Summary | |
|---|---|
static java.lang.String |
ABBREVIATED_NAME
The abbreviated name of this color space. |
static java.lang.String |
NAME
The name of this color space. |
| Constructor Summary | |
|---|---|
PDIndexed()
Constructor, default DeviceRGB, hival 255. |
|
PDIndexed(COSArray indexedArray)
Constructor. |
|
| Method Summary | |
|---|---|
java.awt.image.ColorModel |
createColorModel(int bpc)
Create a Java color model for this colorspace. |
java.awt.color.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. |
java.lang.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 java.lang.String NAME
public static final java.lang.String ABBREVIATED_NAME
| Constructor Detail |
|---|
public PDIndexed()
public PDIndexed(COSArray indexedArray)
indexedArray - The array containing the indexed parameters| Method Detail |
|---|
public int getNumberOfComponents()
throws java.io.IOException
getNumberOfComponents in class PDColorSpacejava.io.IOException - If there is an error getting the number of color components.public java.lang.String getName()
getName in class PDColorSpace
public java.awt.color.ColorSpace createColorSpace()
throws java.io.IOException
createColorSpace in class PDColorSpacejava.io.IOException - If there is an error creating the color space.
public java.awt.image.ColorModel createColorModel(int bpc)
throws java.io.IOException
createColorModel in class PDColorSpacebpc - The number of bits per component.
java.io.IOException - If there is an error creating the color model.
public PDColorSpace getBaseColorSpace()
throws java.io.IOException
java.io.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 java.io.IOException
componentNumber - The component number, probably 1,2,3,3.lookupIndex - The zero-based index into the table, should not exceed the high value.
java.io.IOException - If there is an error looking up the color.
public void setLookupColor(int componentNumber,
int lookupIndex,
int color)
throws java.io.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.
java.io.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 | |||||||||