public class SetGrayStroke extends SetColorOperator
Class representing gray level for stroking operations.
Constructor and Description |
---|
SetGrayStroke(double gray)
Initializes operator with the specified color.
|
SetGrayStroke(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.
|
Color |
getColor()
Returns color specified by operator.
|
double |
getGray()
Gets or sets the level of gray value.
|
void |
setGray(double value)
Gets or sets the level of gray value.
|
String |
toString()
Returns text representation of operator.
|
Equals, equals, getCommand, getCommandName, getIndex, getParameters, isTextShowOperator, reset, setIndex, toString
public SetGrayStroke(int index, com.aspose.pdf.engine.commondata.pagecontent.operators.commands.ICommand command)
Constructor for operator class.
index
- Index of operator.command
- Operator command.public SetGrayStroke(double gray)
Initializes operator with the specified color.
gray
- The level of gray value.public Color getColor()
Returns color specified by operator.
getColor
in class SetColorOperator
public final double getGray()
Gets or sets the level of gray value.
public final void setGray(double value)
Gets or sets the level of gray value.
value
- double valuepublic void accept(IOperatorSelector visitor)
Accepts visitor object to process operator.
Copyright © 2023 Aspose. All Rights Reserved.