public class SetGray extends SetColorOperator
Set gray level for non-stroking operations.
Constructor and Description |
---|
SetGray(double gray)
Constructor for writing program.
|
SetGray(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 string represnetation of operator.
|
equals, getCommand, getCommandName, getIndex, getParameters, isTextShowOperator, reset, setIndex, toString, valueEquals
public SetGray(int index, com.aspose.pdf.engine.commondata.pagecontent.operators.commands.ICommand command)
Constructor for operator class.
index
- Index of operator.command
- Operator command.public SetGray(double gray)
Constructor for writing program.
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.