\Pop\Image\ColorCmyk

Image CMYK color class

Summary

Methods
Properties
Constants
__toString()
__construct()
setC()
setM()
setY()
setK()
getC()
getM()
getY()
getK()
toRgb()
toGray()
No public properties found
No constants found
No protected methods found
$c
$m
$y
$k
N/A
No private methods found
No private properties found
N/A

Properties

$c

$c : float

Cyan

Type

float

$m

$m : float

Magenta

Type

float

$y

$y : float

Yellow

Type

float

$k

$k : float

Black

Type

float

Methods

__toString()

__toString() : string

Method to print the color object

Returns

string

__construct()

__construct(mixed  $c, mixed  $m, mixed  $y, mixed  $k) 

Constructor

Instantiate a PDF CMYK Color object

Parameters

mixed $c

0 - 100

mixed $m

0 - 100

mixed $y

0 - 100

mixed $k

0 - 100

setC()

setC(mixed  $c) : \Pop\Image\Color\Cmyk

Set the cyan value

Parameters

mixed $c

Throws

\OutOfRangeException

Returns

\Pop\Image\Color\Cmyk

setM()

setM(mixed  $m) : \Pop\Image\Color\Cmyk

Set the magenta value

Parameters

mixed $m

Throws

\OutOfRangeException

Returns

\Pop\Image\Color\Cmyk

setY()

setY(mixed  $y) : \Pop\Image\Color\Cmyk

Set the yellow value

Parameters

mixed $y

Throws

\OutOfRangeException

Returns

\Pop\Image\Color\Cmyk

setK()

setK(mixed  $k) : \Pop\Image\Color\Cmyk

Set the black value

Parameters

mixed $k

Throws

\OutOfRangeException

Returns

\Pop\Image\Color\Cmyk

getC()

getC() : float

Get the cyan value

Returns

float

getM()

getM() : float

Get the magenta value

Returns

float

getY()

getY() : float

Get the yellow value

Returns

float

getK()

getK() : float

Get the black value

Returns

float