public class SetColorStroke extends BasicSetColorOperator
Class representing SC operator set color for stroking color operators.
Constructor and Description |
---|
SetColorStroke()
Initializes operator.
|
SetColorStroke(double g)
Set color for stroking operators for DeviceGrey, CalGrey and Indexed color spaces.
|
SetColorStroke(double[] color)
Constructor which allows to set color components.
|
SetColorStroke(double r,
double g,
double b)
Set color for stroking operator for DeviceRGB, CalRGB, and Lab color spaces
|
SetColorStroke(double c,
double m,
double y,
double k)
Set color for stroking operator for CMYK color space
|
SetColorStroke(int index,
com.aspose.pdf.engine.commondata.pagecontent.operators.commands.ICommand command)
Constructor for operator class.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(IOperatorSelector visitor)
Accepts visitor object to process operator.
|
double |
getB()
Gets or sets the blue component.
|
double |
getC()
Gets or sets the cyan component.
|
Color |
getColor()
Returns color specified by operator.
|
double |
getG()
Gets or sets the green component.
|
double |
getK()
Gets or sets the black component.
|
double |
getM()
Gets or sets the magenta component.
|
double |
getR()
Gets or sets the red component.
|
double |
getY()
Gets or sets the yellow component.
|
void |
setB(double value)
Gets or sets the blue component.
|
void |
setC(double value)
Gets or sets the cyan component.
|
void |
setG(double value)
Gets or sets the green component.
|
void |
setK(double value)
Gets or sets the black component.
|
void |
setM(double value)
Gets or sets the magenta component.
|
void |
setR(double value)
Gets or sets the red component.
|
void |
setY(double value)
Gets or sets the yellow component.
|
getColorArray, getGrey
getCommand, getCommandName, getIndex, getParameters, isTextShowOperator, reset, setIndex, toString, toString
public SetColorStroke()
Initializes operator.
public SetColorStroke(int index, com.aspose.pdf.engine.commondata.pagecontent.operators.commands.ICommand command)
Constructor for operator class.
index
- Index of operator.command
- Operator command.public SetColorStroke(double g)
Set color for stroking operators for DeviceGrey, CalGrey and Indexed color spaces.
g
- Color value.public SetColorStroke(double r, double g, double b)
Set color for stroking operator for DeviceRGB, CalRGB, and Lab color spaces
r
- Red component.g
- Green component.b
- Blue component.public SetColorStroke(double[] color)
Constructor which allows to set color components.
color
- Array of color components.public SetColorStroke(double c, double m, double y, double k)
Set color for stroking operator for CMYK color space
c
- Cyan component.m
- Magenta component.y
- Yellow component.k
- Black component.public Color getColor()
Returns color specified by operator.
getColor
in class SetColorOperator
public final double getC()
Gets or sets the cyan component.
getC
in class BasicSetColorOperator
public final void setC(double value)
Gets or sets the cyan component.
value
- doable valuepublic final double getM()
Gets or sets the magenta component.
getM
in class BasicSetColorOperator
public final void setM(double value)
Gets or sets the magenta component.
value
- doable valuepublic final double getY()
Gets or sets the yellow component.
getY
in class BasicSetColorOperator
public final void setY(double value)
Gets or sets the yellow component.
value
- doable valuepublic final double getK()
Gets or sets the black component.
getK
in class BasicSetColorOperator
public final void setK(double value)
Gets or sets the black component.
value
- doable valuepublic final double getR()
Gets or sets the red component.
Value: The level of red from 0.0 to 1.0getR
in class BasicSetColorOperator
public final void setR(double value)
Gets or sets the red component.
Value: The level of red from 0.0 to 1.0value
- doable valuepublic final double getG()
Gets or sets the green component.
Value: The level of green from 0.0 to 1.0getG
in class BasicSetColorOperator
public final void setG(double value)
Gets or sets the green component.
Value: The level of green from 0.0 to 1.0value
- double valuepublic final double getB()
Gets or sets the blue component.
Value: The level of blue from 0.0 to 1.0getB
in class BasicSetColorOperator
public final void setB(double value)
Gets or sets the blue component.
Value: The level of blue from 0.0 to 1.0value
- doable valuepublic void accept(IOperatorSelector visitor)
Accepts visitor object to process operator.
Copyright © 2023 Aspose. All Rights Reserved.