public class DeviceCMYK extends PColorSpace
| Modifier and Type | Field and Description |
|---|---|
static Name |
CMYK_KEY |
static Name |
DEVICECMYK_KEY |
entries, FORM_TYPE_KEY, inited, isDeleted, isNew, LENGTH_KEY, library, SUBTYPE_KEY, TYPE_KEY| Constructor and Description |
|---|
DeviceCMYK(Library l,
java.util.HashMap h) |
| Modifier and Type | Method and Description |
|---|---|
java.awt.Color |
getColor(float[] f,
boolean fillAndStroke)
Converts a 4 component cmyk colour to rgb.
|
static java.awt.color.ICC_ColorSpace |
getIccCmykColorSpace()
Gets the ICC Color Profile found in the icepdf-core.jar at the location
/org/icepdf/core/pobjects/graphics/res/ or the ICC Color Profiel
specified by the system property org.icepdf.core.pobjects.graphics.cmyk.
|
int |
getNumComponents() |
static boolean |
isDisableICCCmykColorSpace()
Determines if the ICC CMYK color space should be used to convert
CMYK images to RGB.
|
static void |
setDisableICCCmykColorSpace(boolean disableICCCmykColorSpace)
Set the value of the disableICCCmykColorSpace property.
|
getColor, getColorSpace, getColorSpace, getDescription, normaliseComponentsToFloats, reverse, reverseInPlace, reverseInPlacegetEntries, getFloat, getInt, getLibrary, getNumber, getObject, getPObjectReference, init, isDeleted, isNew, setDeleted, setNew, setPObjectReference, toStringpublic static final Name DEVICECMYK_KEY
public static final Name CMYK_KEY
public DeviceCMYK(Library l, java.util.HashMap h)
public int getNumComponents()
getNumComponents in class PColorSpacepublic java.awt.Color getColor(float[] f,
boolean fillAndStroke)
getColor in class PColorSpacef - 4 component values of the cmyk, assumes compoents between
0.0 and 1.0public static java.awt.color.ICC_ColorSpace getIccCmykColorSpace()
public static boolean isDisableICCCmykColorSpace()
public static void setDisableICCCmykColorSpace(boolean disableICCCmykColorSpace)
disableICCCmykColorSpace - true to disable the ICC CMYK color space
conversion, false otherwise.