| java.lang.Object org.pdfbox.pdmodel.graphics.color.PDColorSpace org.pdfbox.pdmodel.graphics.color.PDIndexed
Constructor Summary | |
public | PDIndexed() Constructor, default DeviceRGB, hival 255. | public | PDIndexed(COSArray indexedArray) Constructor. |
Method Summary | |
public ColorModel | createColorModel(int bpc) Create a Java color model for this colorspace.
Parameters: bpc - The number of bits per component. | public ColorSpace | createColorSpace() Create a Java colorspace for this colorspace. | public PDColorSpace | getBaseColorSpace() This will get the color space that acts as the index for this color space. | public int | getHighValue() Get the highest value for the lookup. | public String | getName() This will return the name of the color space. | public int | getNumberOfComponents() This will return the number of color components. | public int | lookupColor(int componentNumber, int lookupIndex) This will perform a lookup into the color lookup table.
Parameters: componentNumber - The component number, probably 1,2,3,3. Parameters: lookupIndex - The zero-based index into the table, should not exceed the high value. | public void | setBaseColorSpace(PDColorSpace base) This will set the base color space. | public void | setHighValue(int high) This will set the highest value that is allowed. | public void | setLookupColor(int componentNumber, int lookupIndex, int color) This will set a color in the color lookup table. |
ABBREVIATED_NAME | final public static String ABBREVIATED_NAME(Code) | | The abbreviated name of this color space.
|
NAME | final public static String NAME(Code) | | The name of this color space.
|
PDIndexed | public PDIndexed()(Code) | | Constructor, default DeviceRGB, hival 255.
|
PDIndexed | public PDIndexed(COSArray indexedArray)(Code) | | Constructor.
Parameters: indexedArray - The array containing the indexed parameters |
createColorModel | public ColorModel createColorModel(int bpc) throws IOException(Code) | | Create a Java color model for this colorspace.
Parameters: bpc - The number of bits per component. A color model that can be used for Java AWT operations. throws: IOException - If there is an error creating the color model. |
createColorSpace | public ColorSpace createColorSpace() throws IOException(Code) | | Create a Java colorspace for this colorspace.
A color space that can be used for Java AWT operations. throws: IOException - If there is an error creating the color space. |
getBaseColorSpace | public PDColorSpace getBaseColorSpace() throws IOException(Code) | | This will get the color space that acts as the index for this color space.
The base color space. throws: IOException - If there is error creating the base color space. |
getHighValue | public int getHighValue()(Code) | | Get the highest value for the lookup.
The hival entry. |
getName | public String getName()(Code) | | This will return the name of the color space.
The name of the color space. |
getNumberOfComponents | public int getNumberOfComponents() throws IOException(Code) | | This will return the number of color components. This will return the
number of color components in the base color.
The number of components in this color space. throws: IOException - If there is an error getting the number of color components. |
lookupColor | public int lookupColor(int componentNumber, int lookupIndex) throws IOException(Code) | | This will perform a lookup into the color lookup table.
Parameters: componentNumber - The component number, probably 1,2,3,3. Parameters: lookupIndex - The zero-based index into the table, should not exceed the high value. The value that was from the lookup table. throws: IOException - If there is an error looking up the color. |
setBaseColorSpace | public void setBaseColorSpace(PDColorSpace base)(Code) | | This will set the base color space.
Parameters: base - The base color space to use as the index. |
setHighValue | public void setHighValue(int high)(Code) | | This will set the highest value that is allowed. This cannot be higher
than 255.
Parameters: high - The highest value for the lookup table. |
setLookupColor | public void setLookupColor(int componentNumber, int lookupIndex, int color) throws IOException(Code) | | This will set a color in the color lookup table.
Parameters: componentNumber - The component number, probably 1,2,3,3. Parameters: lookupIndex - The zero-based index into the table, should not exceed the high value. Parameters: color - The color that will go into the table. throws: IOException - If there is an error looking up the color. |
|
|