Class DeviceN


  • public class DeviceN
    extends Color
    Representation of a DeviceN color space.
    • Constructor Detail

      • DeviceN

        public DeviceN​(PdfSpecialCs.DeviceN cs,
                       float[] value)
        Creates a DeviceN color using the given PdfSpecialCs color space and color values.
        Parameters:
        cs - Color space
        value - Color component values
      • DeviceN

        public DeviceN​(java.util.List<java.lang.String> names,
                       PdfColorSpace alternateCs,
                       IPdfFunction tintTransform,
                       float[] value)
        Creates a color in a new DeviceN color space.
        Parameters:
        names - the names oif the components
        alternateCs - the alternate color space
        tintTransform - the function to transform color to the alternate color space
        value - the values for the components of this color
    • Method Detail

      • getDefaultColorants

        private static float[] getDefaultColorants​(int numOfColorants)