Skip to content

# PDFSetCmykStrokeOperator

Namespace: O2S.Components.PDF4NET.Graphics.Operators

Defines the K (set CMYK level for stroke operations) content stream operator.

    public class PDFSetCmykStrokeOperator : PDFContentStreamOperator

Inheritance Object → PDFContentStreamOperator → PDFSetCmykStrokeOperator

## Constructors

### PDFSetCmykStrokeOperator()

Initializes a new PDFSetCmykStrokeOperator object.

    public PDFSetCmykStrokeOperator()

### PDFSetCmykStrokeOperator(Double, Double, Double, Double)

Initializes a new PDFSetCmykStrokeOperator object.

    public PDFSetCmykStrokeOperator(double c, double m, double y, double k)

Parameters

`c` Double
The cyan level.

`m` Double
The magenta level.

`y` Double
The yellow level.

`k` Double
The black level.

## Properties

### C

Gets or sets the cyan level.

    public double C { get; set; }

Property Value

Double
The cyan level.

Remarks

The cyan level is in [0, 1] range.

### Context

Gets the content stream container from which the operator is extracted.

    public PDFContentStreamContainer Context { get; internal set; }

Property Value

PDFContentStreamContainer
A content stream container object, a PDFPage or a PDFFormXObject.

### K

Gets or sets the black level.

    public double K { get; set; }

Property Value

Double
The black level.

Remarks

The black level is in [0, 1] range.

### M

Gets or sets the magenta level.

    public double M { get; set; }

Property Value

Double
The magenta level.

Remarks

The magenta level is in [0, 1] range.

### OpCode

Gets the operator code.

    public string OpCode { get; }

Property Value

String
The operator code as it is written in the content stream.

### Type

Gets or sets the operator type.

    public PDFContentStreamOperatorType Type { get; set; }

Property Value

PDFContentStreamOperatorType
The type of this operator.

### Y

Gets or sets the yellow level.

    public double Y { get; set; }

Property Value

Double
The yellow level.

Remarks

The yellow level is in [0, 1] range.