Documentation

Cmyk extends AbstractColor
in package

Image CMYK color class

Tags
category

Pop

author

Nick Sagona, III dev@nolainteractive.com

copyright

Copyright (c) 2009-2021 NOLA Interactive, LLC. (http://www.nolainteractive.com)

license

http://www.popphp.org/license New BSD License

version
3.4.0

Table of Contents

$c  : float
Cyan
$k  : float
Black
$m  : float
Magenta
$y  : float
Yellow
__construct()  : mixed
Constructor
__toString()  : string
Method to print the color object
getC()  : float
Get the cyan value
getK()  : float
Get the black value
getM()  : float
Get the magenta value
getY()  : float
Get the yellow value
setC()  : Cmyk
Set the cyan value
setK()  : Cmyk
Set the black value
setM()  : Cmyk
Set the magenta value
setY()  : Cmyk
Set the yellow value
toGray()  : Gray
Convert to Gray
toRgb()  : Rgb
Convert to RGB

Properties

$c

Cyan

protected float $c = 0

$k

Black

protected float $k = 0

$m

Magenta

protected float $m = 0

$y

Yellow

protected float $y = 0

Methods

__construct()

Constructor

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

Instantiate a PDF CMYK Color object

Parameters
$c : mixed

0 - 100

$m : mixed

0 - 100

$y : mixed

0 - 100

$k : mixed

0 - 100

Return values
mixed

__toString()

Method to print the color object

public __toString() : string
Return values
string

getC()

Get the cyan value

public getC() : float
Return values
float

getK()

Get the black value

public getK() : float
Return values
float

getM()

Get the magenta value

public getM() : float
Return values
float

getY()

Get the yellow value

public getY() : float
Return values
float

setC()

Set the cyan value

public setC(mixed $c) : Cmyk
Parameters
$c : mixed
Tags
throws
OutOfRangeException
Return values
Cmyk

setK()

Set the black value

public setK(mixed $k) : Cmyk
Parameters
$k : mixed
Tags
throws
OutOfRangeException
Return values
Cmyk

setM()

Set the magenta value

public setM(mixed $m) : Cmyk
Parameters
$m : mixed
Tags
throws
OutOfRangeException
Return values
Cmyk

setY()

Set the yellow value

public setY(mixed $y) : Cmyk
Parameters
$y : mixed
Tags
throws
OutOfRangeException
Return values
Cmyk

toGray()

Convert to Gray

public toGray() : Gray
Return values
Gray

toRgb()

Convert to RGB

public toRgb() : Rgb
Return values
Rgb

Search results