com.aspose.pdf.operators

Class SetCMYKColorStroke



  • public class SetCMYKColorStroke
    extends SetColorOperator

    Class representing K operator (set CMYK color for stroking operations).

    • Constructor Detail

      • SetCMYKColorStroke

        public SetCMYKColorStroke(int index,
                                  com.aspose.pdf.engine.commondata.pagecontent.operators.commands.ICommand command)

        Constructor for operator class.

        Parameters:
        index - Index of operator.
        command - Operator command.
      • SetCMYKColorStroke

        public SetCMYKColorStroke(double c,
                                  double m,
                                  double y,
                                  double k)

        Initializes operator.

        Parameters:
        c - The level of cyan from 0.0 to 1.0
        m - The level of magenta from 0.0 to 1.0
        y - The level of yellow from 0.0 to 1.0
        k - The level of black from 0.0 to 1.0
    • Method Detail

      • getColor

        public Color getColor()

        Returns the RGB color

        Specified by:
        getColor in class SetColorOperator
        Returns:
        Color specified by operator.
      • accept

        public void accept(IOperatorSelector visitor)

        Accepts visitor object to process operator.

        Specified by:
        accept in class Operator
        Parameters:
        visitor - Visitor object.
      • getRGBColor

        public void getRGBColor(double[] cmyk,
                                double[] rgbOut)