| Modifier and Type | Field and Description |
|---|---|
| private ICC_ColorSpace | |
| private volatile boolean | |
| private final PDColor | |
| public static PDDeviceCMYK | INSTANCE
The single instance of this class. |
| private boolean |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public float[] | getDefaultDecode(int
the number of bits per component. bitsPerComponent)Implements abstract org. Returns the default decode array for this color space. |
| protected ICC_Profile | |
| 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 |
| 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. |
| protected BufferedImage | toRGBImageAWT(WritableRaster
the source raster raster, ColorSpace the AWT colorSpace)Overrides org. Returns the (A)RGB equivalent of the given raster, using the given AWT color space to perform the conversion. |
| awtColorSpace | back to summary |
|---|---|
| private ICC_ColorSpace awtColorSpace | |
| initDone | back to summary |
|---|---|
| private volatile boolean initDone | |
| initialColor | back to summary |
|---|---|
| private final PDColor initialColor | |
| INSTANCE | back to summary |
|---|---|
| public static PDDeviceCMYK INSTANCE The single instance of this class. | |
| usePureJavaCMYKConversion | back to summary |
|---|---|
| private boolean usePureJavaCMYKConversion | |
| PDDeviceCMYK | back to summary |
|---|---|
| protected PDDeviceCMYK() | |
| getDefaultDecode | back to summary |
|---|---|
| public float[] getDefaultDecode(int bitsPerComponent) Implements abstract org. Doc from org. Returns the default decode array for this color space.
| |
| getICCProfile | back to summary |
|---|---|
| protected ICC_Profile getICCProfile() throws IOException | |
| 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
| |
| init | back to summary |
|---|---|
| protected void init() throws IOException Lazy load the ICC profile, because it's slow.
| |
| toRawImage | back to summary |
|---|---|
| public BufferedImage toRawImage(WritableRaster raster) throws IOException 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.
| |
| toRGBImageAWT | back to summary |
|---|---|
| protected BufferedImage toRGBImageAWT(WritableRaster raster, ColorSpace colorSpace) Overrides org. Doc from org. Returns the (A)RGB equivalent of the given raster, using the given AWT color space to perform the conversion.
| |