SetRGBColorStroke

Inheritance: java.lang.Object, com.aspose.pdf.Operator, com.aspose.pdf.operators.SetColorOperator

public class SetRGBColorStroke extends SetColorOperator

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

Constructors

ConstructorDescription
SetRGBColorStroke(int index, ICommand command)Constructor for operator class.
SetRGBColorStroke(double r, double g, double b)Constructor for writing program.
SetRGBColorStroke(Color color)Initializes operator with color.

Methods

MethodDescription
getColor()Returns color specified by operator.
getR()Gets or sets the red component.
setR(double value)Gets or sets the red component.
getG()Gets or sets the green component.
setG(double value)Gets or sets the green component.
getB()Gets or sets the blue component.
setB(double value)Gets or sets the blue component.
accept(IOperatorSelector visitor)Accepts visitor object to process operator.
toString()Returns text representation of operator.
getCMYKColor(double[] rgb, double[] cmykOut)

SetRGBColorStroke(int index, ICommand command)

public SetRGBColorStroke(int index, ICommand command)

Constructor for operator class.

Parameters:

ParameterTypeDescription
indexintIndex of operator.
commandICommandOperator command.

SetRGBColorStroke(double r, double g, double b)

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

Constructor for writing program.

Parameters:

ParameterTypeDescription
rdoubleThe level of red from 0.0 to 1.0
gdoubleThe level of green from 0.0 to 1.0
bdoubleThe level of blue from 0.0 to 1.0

SetRGBColorStroke(Color color)

public SetRGBColorStroke(Color color)

Initializes operator with color.

Parameters:

ParameterTypeDescription
colorjava.awt.Colorjava.awt.Color object

getColor()

public Color getColor()

Returns color specified by operator.

Returns: Color - Color specified by operator.

getR()

public final double getR()

Gets or sets the red component.

Value: The level of red from 0.0 to 1.0

Returns: double - doable value

setR(double value)

public final void setR(double value)

Gets or sets the red component.

Value: The level of red from 0.0 to 1.0

Parameters:

ParameterTypeDescription
valuedoubledoable value

getG()

public final double getG()

Gets or sets the green component.

Value: The level of green from 0.0 to 1.0

Returns: double - doable value

setG(double value)

public final void setG(double value)

Gets or sets the green component.

Value: The level of green from 0.0 to 1.0

Parameters:

ParameterTypeDescription
valuedoubledoable value

getB()

public final double getB()

Gets or sets the blue component.

Value: The level of blue from 0.0 to 1.0

Returns: double - doable value

setB(double value)

public final void setB(double value)

Gets or sets the blue component.

Value: The level of blue from 0.0 to 1.0

Parameters:

ParameterTypeDescription
valuedoubledoable value

accept(IOperatorSelector visitor)

public void accept(IOperatorSelector visitor)

Accepts visitor object to process operator.

Parameters:

ParameterTypeDescription
visitorIOperatorSelectorVisitor object.

toString()

public String toString()

Returns text representation of operator.

Returns: java.lang.String - Text representation of operator.

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

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

Parameters:

ParameterTypeDescription
rgbdouble[]
cmykOutdouble[]