Class DeviceNColorSpace

java.lang.Object
com.datalogics.PDFL.ColorSpace
com.datalogics.PDFL.DeviceNColorSpace

public class DeviceNColorSpace extends ColorSpace
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.
  • Constructor Details

    • DeviceNColorSpace

      public DeviceNColorSpace(List<String> names, ColorSpace alternate, Function tintTransform)
      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 None
      alternate - 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:
      delete in class ColorSpace
    • getNames

      public List<String> getNames()
      the names of the colorant that the DeviceN space is intended to represent, some of which may be All or None.
    • getAlternate

      public ColorSpace 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

      public Function 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

      public PDFDict getAttributes()
      The dictionary of extended attributes associated with the color space.