COSObjectable
public class PDDeviceCMYK extends PDDeviceColorSpace
Modifier and Type | Field | Description |
---|---|---|
static PDDeviceCMYK |
INSTANCE |
The single instance of this class.
|
array
Modifier | Constructor | Description |
---|---|---|
protected |
PDDeviceCMYK() |
Modifier and Type | Method | Description |
---|---|---|
float[] |
getDefaultDecode(int bitsPerComponent) |
Returns the default decode array for this color space.
|
protected java.awt.color.ICC_Profile |
getICCProfile() |
|
PDColor |
getInitialColor() |
Returns the initial color value for this color space.
|
java.lang.String |
getName() |
Returns the name of the color space.
|
int |
getNumberOfComponents() |
Returns the number of components in this color space
|
protected void |
init() |
Lazy load the ICC profile, because it's slow.
|
float[] |
toRGB(float[] value) |
Returns the RGB equivalent of the given color value.
|
java.awt.image.BufferedImage |
toRGBImage(java.awt.image.WritableRaster raster) |
Returns the (A)RGB equivalent of the given raster.
|
protected java.awt.image.BufferedImage |
toRGBImageAWT(java.awt.image.WritableRaster raster,
java.awt.color.ColorSpace colorSpace) |
Returns the (A)RGB equivalent of the given raster, using the given AWT color space
to perform the conversion.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
create, create, create
getCOSObject, toString
public static PDDeviceCMYK INSTANCE
protected void init() throws java.io.IOException
java.io.IOException
protected java.awt.color.ICC_Profile getICCProfile() throws java.io.IOException
java.io.IOException
public java.lang.String getName()
PDColorSpace
getName
in class PDColorSpace
public int getNumberOfComponents()
PDColorSpace
getNumberOfComponents
in class PDColorSpace
public float[] getDefaultDecode(int bitsPerComponent)
PDColorSpace
getDefaultDecode
in class PDColorSpace
bitsPerComponent
- the number of bits per component.public PDColor getInitialColor()
PDColorSpace
getInitialColor
in class PDColorSpace
public float[] toRGB(float[] value) throws java.io.IOException
PDColorSpace
toRGB
in class PDColorSpace
value
- a color value with component values between 0 and 1java.io.IOException
- if the color conversion failspublic java.awt.image.BufferedImage toRGBImage(java.awt.image.WritableRaster raster) throws java.io.IOException
PDColorSpace
toRGBImage
in class PDColorSpace
raster
- the source rasterjava.io.IOException
- if the color conversion failsprotected java.awt.image.BufferedImage toRGBImageAWT(java.awt.image.WritableRaster raster, java.awt.color.ColorSpace colorSpace)
PDColorSpace
toRGBImageAWT
in class PDColorSpace
raster
- the source rastercolorSpace
- the AWTCopyright © 2002–2018. All rights reserved.