SetCMYKColor

Overview

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

k — Set CMYK fill color.

This class declares 7 methods for SetCMYKColor objects in .NET programs. Available methods include: Accept, IsTextShowOperator, SetCMYKColor, 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 fill color, from 0 to 1.
MdoubleRead/WriteGets or sets the magenta component of the fill color, from 0 to 1.
YdoubleRead/WriteGets or sets the yellow component of the fill color, from 0 to 1.
KdoubleRead/WriteGets or sets the black component of the fill 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
SetCMYKColor(c: double, m: double, y: double, k: double)Creates a k operator that sets the fill color to the given cyan, magenta, yellow and black components, each from 0 to 1.
ToPdf()Calls ToPdf on this SetCMYKColor instance.
Accept(visitor: IOperatorSelector)Calls Accept(visitor) on this SetCMYKColor instance.
getColor()Calls getColor on this SetCMYKColor 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