| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private PDColorSpace | |
| private float[][] | |
| private final PDColor | |
| private byte[] | |
| private int[][] |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | PDIndexed(COSArray
the array containing the indexed parameters indexedArray, PDResources the resources, can be null. Allows to use its cache for the colorspace. resources)Creates a new indexed color space from the given PDF array. |
| Modifier and Type | Method and Description |
|---|---|
| public PDColorSpace | |
| public float[] | getDefaultDecode(int
the number of bits per component. bitsPerComponent)Implements abstract org. Returns the default decode array for this color space. |
| private int | |
| public PDColor | getInitialColor()
Implements abstract org. Returns the initial color value for this color space. |
| public String | getName()
Implements abstract org. Returns the name of the color space. |
| public int | getNumberOfComponents()
Implements abstract org. Returns the number of components in this color space |
| private void | |
| private void | |
| private void | |
| public void | |
| public void | |
| public BufferedImage | toRawImage(WritableRaster
the source raster raster)Implements abstract org. Returns the image in this colorspace or null. |
| public float[] | toRGB(float[]
a color value with component values between 0 and 1 value)Implements abstract org. Returns the RGB equivalent of the given color value. |
| public BufferedImage | toRGBImage(WritableRaster
the source raster raster)Implements abstract org. Returns the (A)RGB equivalent of the given raster. |
| public String |
| actualMaxIndex | back to summary |
|---|---|
| private int actualMaxIndex | |
| baseColorSpace | back to summary |
|---|---|
| private PDColorSpace baseColorSpace | |
| colorTable | back to summary |
|---|---|
| private float[][] colorTable | |
| initialColor | back to summary |
|---|---|
| private final PDColor initialColor | |
| lookupData | back to summary |
|---|---|
| private byte[] lookupData | |
| rgbColorTable | back to summary |
|---|---|
| private int[][] rgbColorTable | |
| PDIndexed | back to summary |
|---|---|
| public PDIndexed() Creates a new Indexed color space. Default DeviceRGB, hival 255. | |
| PDIndexed | back to summary |
|---|---|
| public PDIndexed(COSArray indexedArray) throws IOException Creates a new indexed color space from the given PDF array.
| |
| PDIndexed | back to summary |
|---|---|
| public PDIndexed(COSArray indexedArray, PDResources resources) throws IOException Creates a new indexed color space from the given PDF array.
| |
| getBaseColorSpace | back to summary |
|---|---|
| public PDColorSpace getBaseColorSpace() Returns the base color space.
| |
| getDefaultDecode | back to summary |
|---|---|
| public float[] getDefaultDecode(int bitsPerComponent) Implements abstract org. Doc from org. Returns the default decode array for this color space.
| |
| getHival | back to summary |
|---|---|
| private int getHival() | |
| getInitialColor | back to summary |
|---|---|
| public PDColor getInitialColor() Implements abstract org. Doc from org. Returns the initial color value for this color space. | |
| getName | back to summary |
|---|---|
| public String getName() Implements abstract org. Doc from org. Returns the name of the color space. | |
| getNumberOfComponents | back to summary |
|---|---|
| public int getNumberOfComponents() Implements abstract org. Doc from org. Returns the number of components in this color space
| |
| initRgbColorTable | back to summary |
|---|---|
| private void initRgbColorTable() throws IOException | |
| readColorTable | back to summary |
|---|---|
| private void readColorTable() throws IOException | |
| readLookupData | back to summary |
|---|---|
| private void readLookupData() throws IOException | |
| setBaseColorSpace | back to summary |
|---|---|
| public void setBaseColorSpace(PDColorSpace base) Sets the base color space.
| |
| setHighValue | back to summary |
|---|---|
| public void setHighValue(int high) Sets the highest value that is allowed. This cannot be higher than 255.
| |
| toRawImage | back to summary |
|---|---|
| public BufferedImage toRawImage(WritableRaster raster) Implements abstract org. Doc from org. Returns the image in this colorspace or null. No conversion is performed.
For special colorspaces like PDSeparation the image is returned in the gray colorspace. For undefined colorspaces
like DeviceCMYK/DeviceRGB and DeviceGray null is returned.
You can always fallback to
| |
| toRGB | back to summary |
|---|---|
| public float[] toRGB(float[] value) Implements abstract org. Doc from org. Returns the RGB equivalent of the given color value.
| |
| toRGBImage | back to summary |
|---|---|
| public BufferedImage toRGBImage(WritableRaster raster) throws IOException Implements abstract org. Doc from org. Returns the (A)RGB equivalent of the given raster.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |