Package com.datalogics.PDFL
Class DeviceNColorSpace
java.lang.Object
com.datalogics.PDFL.ColorSpace
com.datalogics.PDFL.DeviceNColorSpace
Represents a color space with an arbitrary number of color components. DeviceN color spaces were designed to represent color spaces containing multiple color components that correspond to the colorants of some target device. They provide greater flexibility than is possible with standard device color spaces such as DeviceCMYK or with individual Separation color spaces. For example, it is possible to create a DeviceN color space consisting of only the cyan, magenta, and yellow color components, with the black component excluded.
-
Field Summary
Fields inherited from class com.datalogics.PDFL.ColorSpace
DEVICE_CMYK, DEVICE_GRAY, DEVICE_RGB, DEVICE_RGBA, LAB, LAB_A -
Constructor Summary
ConstructorsConstructorDescriptionDeviceNColorSpace(List<String> names, ColorSpace alternate, Function tintTransform) Create a DeviceN color space. -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()the alternate color space, which can be any device or CIE-based color space but not another special color space (Pattern, Indexed, Separation, or DeviceN).The dictionary of extended attributes associated with the color space.A function, called with the tint value and returning the corresponding color component values.getNames()the names of the colorant that the DeviceN space is intended to represent, some of which may be All or None.Methods inherited from class com.datalogics.PDFL.ColorSpace
equals, getName, getNumComponents, getPDFObject, toString
-
Constructor Details
-
DeviceNColorSpace
Create a DeviceN color space.- Parameters:
names- the names of the colorants that the DeviceN space is intended to represent, among which may be All, or Nonealternate- the alternate color space, which can be any device or CIE-based color space but not another special color space (Pattern, Indexed, Separation, or DeviceN).tintTransform- function, called with the tint value and returning the corresponding color component values. That is, the number of components and the interpretation of their values depend on the alternate color space.
-
-
Method Details
-
delete
public void delete()- Overrides:
deletein classColorSpace
-
getNames
the names of the colorant that the DeviceN space is intended to represent, some of which may be All or None. -
getAlternate
the alternate color space, which can be any device or CIE-based color space but not another special color space (Pattern, Indexed, Separation, or DeviceN). -
getFunction
A function, called with the tint value and returning the corresponding color component values. That is, the number of components and the interpretation of their values depend on the alternate color space. -
getAttributes
The dictionary of extended attributes associated with the color space.
-