| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private PDColorSpace | |
| private PDDeviceNAttributes | |
| private static final int | |
| private int[] | |
| private static final int | |
| private PDColor | |
| private int | |
| private PDColorSpace | |
| private PDSeparation[] | |
| private static final int | |
| private PDFunction |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public PDColorSpace | Returns: The alternate color space.This will get the alternate color space for this separation. |
| public PDDeviceNAttributes | Returns: the DeviceN attributesReturns the attributes associated with the DeviceN color space. |
| public List | |
| 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 final int | getNumberOfComponents()
Implements abstract org. Returns the number of components in this color space |
| public PDFunction | |
| private void | |
| public boolean | Returns: true if subtype is NChannelReturns true if this color space has the NChannel subtype. |
| public void | setAlternateColorSpace(PDColorSpace
The alternate color space. cs)This will set the alternate color space. |
| public void | setAttributes(PDDeviceNAttributes
the color space attributes, or null attributes)Sets the color space attributes. |
| public void | |
| public void | setTintTransform(PDFunction
The tint transform function. tint)This will set the tint transform function. |
| 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 | |
| private float[] | |
| private BufferedImage | |
| private float[] | |
| public String |
| ALTERNATE_CS | back to summary |
|---|---|
| private static final int ALTERNATE_CS | |
| alternateColorSpace | back to summary |
|---|---|
| private PDColorSpace alternateColorSpace | |
| attributes | back to summary |
|---|---|
| private PDDeviceNAttributes attributes | |
| COLORANT_NAMES | back to summary |
|---|---|
| private static final int COLORANT_NAMES | |
| colorantToComponent | back to summary |
|---|---|
| private int[] colorantToComponent | |
| DEVICEN_ATTRIBUTES | back to summary |
|---|---|
| private static final int DEVICEN_ATTRIBUTES | |
| initialColor | back to summary |
|---|---|
| private PDColor initialColor | |
| numColorants | back to summary |
|---|---|
| private int numColorants | |
| processColorSpace | back to summary |
|---|---|
| private PDColorSpace processColorSpace | |
| spotColorSpaces | back to summary |
|---|---|
| private PDSeparation[] spotColorSpaces | |
| TINT_TRANSFORM | back to summary |
|---|---|
| private static final int TINT_TRANSFORM | |
| tintTransform | back to summary |
|---|---|
| private PDFunction tintTransform | |
| PDDeviceN | back to summary |
|---|---|
| public PDDeviceN() Creates a new DeviceN color space. | |
| PDDeviceN | back to summary |
|---|---|
| public PDDeviceN(COSArray deviceN) throws IOException Creates a new DeviceN color space from the given COS array.
| |
| getAlternateColorSpace | back to summary |
|---|---|
| public PDColorSpace getAlternateColorSpace() throws IOException This will get the alternate color space for this separation.
| |
| getAttributes | back to summary |
|---|---|
| public PDDeviceNAttributes getAttributes() Returns the attributes associated with the DeviceN color space.
| |
| getColorantNames | back to summary |
|---|---|
| public List Returns the list of colorants. | |
| 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 final int getNumberOfComponents() Implements abstract org. Doc from org. Returns the number of components in this color space
| |
| getTintTransform | back to summary |
|---|---|
| public PDFunction getTintTransform() throws IOException This will get the tint transform function.
| |
| initColorConversionCache | back to summary |
|---|---|
| private void initColorConversionCache() throws IOException | |
| isNChannel | back to summary |
|---|---|
| public boolean isNChannel() Returns true if this color space has the NChannel subtype.
| |
| setAlternateColorSpace | back to summary |
|---|---|
| public void setAlternateColorSpace(PDColorSpace cs) This will set the alternate color space.
| |
| setAttributes | back to summary |
|---|---|
| public void setAttributes(PDDeviceNAttributes attributes) Sets the color space attributes. If null is passed in then all attribute will be removed.
| |
| setColorantNames | back to summary |
|---|---|
| public void setColorantNames(List<String> names) Sets the list of colorants | |
| setTintTransform | back to summary |
|---|---|
| public void setTintTransform(PDFunction tint) This will set the tint transform function.
| |
| 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.
| |
| toRGBWithAttributes | back to summary |
|---|---|
| private BufferedImage toRGBWithAttributes(WritableRaster raster) throws IOException | |
| toRGBWithAttributes | back to summary |
|---|---|
| private float[] toRGBWithAttributes(float[] value) throws IOException | |
| toRGBWithTintTransform | back to summary |
|---|---|
| private BufferedImage toRGBWithTintTransform(WritableRaster raster) throws IOException | |
| toRGBWithTintTransform | back to summary |
|---|---|
| private float[] toRGBWithTintTransform(float[] value) 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- | |