Skip to content

# PDFSetCmykFillOperator

Namespace: O2S.Components.PDF4NET.Graphics.Operators

Defines the k (set CMYK level for fill operations) content stream operator.

    public class PDFSetCmykFillOperator : PDFContentStreamOperator

Inheritance Object → PDFContentStreamOperator → PDFSetCmykFillOperator

## Constructors

### PDFSetCmykFillOperator()

Initializes a new PDFSetCmykFillOperator object.

    public PDFSetCmykFillOperator()

### PDFSetCmykFillOperator(Double, Double, Double, Double)

Initializes a new PDFSetCmykFillOperator object.

    public PDFSetCmykFillOperator(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.