| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private PDColorSpace | |
| private static final int | |
| private final PDColor | |
| private static final int | |
| private PDFunction | |
| private Map | toRGBMap
Map used to speed up |
| Access | Constructor and Description |
|---|---|
| public | |
| public | PDSeparation(COSArray
an array containing all separation information. separation)Creates a new Separation color space from a PDF color space array. |
| Modifier and Type | Method and Description |
|---|---|
| public PDColorSpace | |
| public String | |
| public float[] | getDefaultDecode(int
the number of bits per component. bitsPerComponent)Implements abstract org. Returns the default decode array for this color space. |
| 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 |
| public void | setAlternateColorSpace(PDColorSpace
The alternate color space. colorSpace)Sets the alternate color space. |
| public void | |
| public void | |
| protected 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. |
| private BufferedImage | |
| public String |
| ALTERNATE_CS | back to summary |
|---|---|
| private static final int ALTERNATE_CS | |
| alternateColorSpace | back to summary |
|---|---|
| private PDColorSpace alternateColorSpace | |
| COLORANT_NAMES | back to summary |
|---|---|
| private static final int COLORANT_NAMES | |
| initialColor | back to summary |
|---|---|
| private final PDColor initialColor | |
| TINT_TRANSFORM | back to summary |
|---|---|
| private static final int TINT_TRANSFORM | |
| tintTransform | back to summary |
|---|---|
| private PDFunction tintTransform | |
| toRGBMap | back to summary |
|---|---|
| private Map<Integer, float[]> toRGBMap Map used to speed up | |
| PDSeparation | back to summary |
|---|---|
| public PDSeparation() Creates a new Separation color space. | |
| PDSeparation | back to summary |
|---|---|
| public PDSeparation(COSArray separation) throws IOException Creates a new Separation color space from a PDF color space array.
| |
| getAlternateColorSpace | back to summary |
|---|---|
| public PDColorSpace getAlternateColorSpace() Returns the colorant name.
| |
| getColorantName | back to summary |
|---|---|
| public String getColorantName() Returns the colorant name.
| |
| getDefaultDecode | back to summary |
|---|---|
| public float[] getDefaultDecode(int bitsPerComponent) Implements abstract org. Doc from org. Returns the default decode array for this color space.
| |
| 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
| |
| setAlternateColorSpace | back to summary |
|---|---|
| public void setAlternateColorSpace(PDColorSpace colorSpace) Sets the alternate color space.
| |
| setColorantName | back to summary |
|---|---|
| public void setColorantName(String name) Sets the colorant name.
| |
| setTintTransform | back to summary |
|---|---|
| public void setTintTransform(PDFunction tint) Sets the tint transform function.
| |
| tintTransform | back to summary |
|---|---|
| protected void tintTransform(float[] samples, int[] alt) throws IOException | |
| 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) throws IOException 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.
| |
| toRGBImage2 | back to summary |
|---|---|
| private BufferedImage toRGBImage2(WritableRaster raster) throws IOException | |
| 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- | |