Class SetColor

SetColor class

Represents class for sc operator (set color for non-stroking operations).

public class SetColor : BasicSetColorOperator

Constructors

NameDescription
SetColor()Initializes operator.
SetColor(double)Set color for stroking operators for DeviceGray, CalGray and Indexed color spaces.
SetColor(double[])Constructor which allows to specify color components.
SetColor(double, double, double)Set color for stroking operator for DeviceRGB, CalRGB, and Lab color spaces
SetColor(double, double, double, double)Set color for non-stroking operator for CMYK color space

Properties

NameDescription
B { get; set; }Gets or sets the blue component.
C { get; set; }Gets or sets the cyan component.
virtual Color { get; }Gets array of color components.
G { get; set; }Gets or sets the green component.
Gray { get; }Gets black component of gray color.
Index { get; set; }Operator index in page operators list.
K { get; set; }Gets or sets the black component.
M { get; set; }Gets or sets the magenta component.
R { get; set; }Gets or sets the red component.
Y { get; set; }Gets or sets the yellow component.

Methods

NameDescription
override Accept(IOperatorSelector)Accepts visitor object to process operator.
override getColor()Returns color specified by the operator.
override ToString()Returns string representation of color.
ValueEquals(Operator)Compares this instance with the given object.

See Also