SetRGBColorStroke

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

public class SetRGBColorStroke extends SetColorOperator

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

Constructors

ConstructorDescription
SetRGBColorStrokeInitializes operator with color.
SetRGBColorStrokeConstructor for writing program.
SetRGBColorStrokeConstructor for operator class.

Methods

MethodDescription
acceptAccepts visitor object to process operator.
getBGets or sets the blue component. Value: The level of blue from 0.0 to 1.0
getCMYKColor
getColorReturns color specified by operator.
getGGets or sets the green component. Value: The level of green from 0.0 to 1.0
getRGets or sets the red component. Value: The level of red from 0.0 to 1.0
setBGets or sets the blue component. Value: The level of blue from 0.0 to 1.0
setGGets or sets the green component. Value: The level of green from 0.0 to 1.0
setRGets or sets the red component. Value: The level of red from 0.0 to 1.0
toStringReturns text representation of operator.

SetRGBColorStroke

Initializes operator with color.

SetRGBColorStroke

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

Constructor for writing program.

Parameters:

ParameterTypeDescription
rThe level of red from 0.0 to 1.0
gThe level of green from 0.0 to 1.0
bThe level of blue from 0.0 to 1.0

SetRGBColorStroke

Constructor for operator class.

accept

Accepts visitor object to process operator.

getB

public final double getB()

Gets or sets the blue component. Value: The level of blue from 0.0 to 1.0

Returns: doable value

getCMYKColor

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

Parameters:

ParameterTypeDescription
rgb
cmykOut

getColor

public Color getColor()

Returns color specified by operator.

Returns: Color specified by operator.

getG

public final double getG()

Gets or sets the green component. Value: The level of green from 0.0 to 1.0

Returns: doable value

getR

public final double getR()

Gets or sets the red component. Value: The level of red from 0.0 to 1.0

Returns: doable value

setB

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
valuedoable value

setG

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
valuedoable value

setR

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
valuedoable value

toString

public String toString()

Returns text representation of operator.

Returns: Text representation of operator.