phpdftk API Documentation

CmykColor
in package
implements ColorInterface

FinalYes

CMYK color with components in 0.0–1.0 range — maps to PDF DeviceCMYK.

Table of Contents

Interfaces

ColorInterface
Common contract for PDF color operands — used by ContentStream color operators.

Properties

$c  : float
$k  : float
$m  : float
$y  : float

Methods

__construct()  : mixed
getColorSpace()  : string
toArray()  : array<int, float>
toRgb()  : RgbColor

Properties

Methods

__construct()

public __construct(float $c, float $m, float $y, float $k) : mixed
Parameters
$c : float
$m : float
$y : float
$k : float

getColorSpace()

public getColorSpace() : string
Return values
string

toArray()

public toArray() : array<int, float>
Return values
array<int, float>

        
On this page

Search results