com.aspose.pdf.operators

Class SetRGBColor



  • public class SetRGBColor
    extends SetColorOperator

    Class representing rg operator (set RGB color for non-stroking operators).

    • Constructor Detail

      • SetRGBColor

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

        Constructor for operator class.

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

        public SetRGBColor(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
      • SetRGBColor

        public SetRGBColor(Color color)

        Initializes operator with color.

        Parameters:
        color - Specified color.
    • 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 the operator.

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

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