com.aspose.pdf.operators

Class SetRGBColorStroke



  • public class SetRGBColorStroke
    extends SetColorOperator

    Class representing RG operator (set RGB color for stroking operators).

    • Constructor Detail

      • SetRGBColorStroke

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

        Constructor for operator class.

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

        public SetRGBColorStroke(double r,
                                 double g,
                                 double b)

        Constructor for writing program.

        Parameters:
        r - The level of red from 0.0 to 1.0
        g - The level of green from 0.0 to 1.0
        b - The level of blue from 0.0 to 1.0
      • SetRGBColorStroke

        public SetRGBColorStroke(Color color)

        Initializes operator with color.

        Parameters:
        color - java.awt.Color object
    • Method Detail

      • getColor

        public Color getColor()

        Returns color specified by operator.

        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.
      • toString

        public String toString()

        Returns text representation of operator.

        Overrides:
        toString in class Operator
        Returns:
        Text representation of operator.
      • getCMYKColor

        public void getCMYKColor(double[] rgb,
                                 double[] cmykOut)