SetCMYKColorStroke

SetCMYKColorStroke

Overview

SetCMYKColorStroke is a class in Aspose.PDF FOSS for .NET. Inherits from: BasicSetColorOperator.

K — Set CMYK stroke color.

This class declares 7 methods for SetCMYKColorStroke objects in .NET programs. Available methods include: Accept, IsTextShowOperator, SetCMYKColorStroke, ToPdf, ToString, ValueEquals, getColor. Public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package. Properties: B, C, Color, CommandName, G, Gray, and 5 more.

Properties

NameTypeAccessDescription
CdoubleRead/WriteGets or sets the cyan component of the stroke color, from 0 to 1.
MdoubleRead/WriteGets or sets the magenta component of the stroke color, from 0 to 1.
YdoubleRead/WriteGets or sets the yellow component of the stroke color, from 0 to 1.
KdoubleRead/WriteGets or sets the black component of the stroke color, from 0 to 1.
Colordouble[]ReadGets the color components.
GraydoubleReadGets the gray level.
RdoubleReadGets the red component.
GdoubleReadGets the green component.
BdoubleReadGets the blue component.
CommandNamestringReadThe PDF command name (last token of the serialised form, e.g.
IndexintRead/Write1-based position of this operator within its containing OperatorCollection.

Methods

SignatureDescription
SetCMYKColorStroke(c: double, m: double, y: double, k: double)Creates a K operator that sets the stroke color to the given cyan, magenta, yellow and black components, each from 0 to 1.
ToPdf()Calls ToPdf on this SetCMYKColorStroke instance.
Accept(visitor: IOperatorSelector)Calls Accept(visitor) on this SetCMYKColorStroke instance.
getColor()Calls getColor on this SetCMYKColorStroke instance.
ToString()Default string form is the PDF serialisation, so callers (test helpers, debug logs) get the same content-stream text whether they hold an unparsed RawOperator or a typed subclass.
IsTextShowOperator(op: Operator)True when op is a text-showing operator (Tj / TJ / ’ / " — concrete subclasses of TextShowOperator).
ValueEquals(op: Operator)True when this operator’s serialised PDF form equals op’s.

See Also

 English