\Pop\Image\ColorGray

Image gray color class

Summary

Methods
Properties
Constants
__toString()
__construct()
setGray()
getGray()
toCmyk()
toRgb()
No public properties found
No constants found
No protected methods found
$gray
N/A
No private methods found
No private properties found
N/A

Properties

$gray

$gray : float

Gray

Type

float

Methods

__toString()

__toString() : string

Method to print the color object

Returns

string

__construct()

__construct(mixed  $gray) 

Constructor

Instantiate a PDF Gray Color object

Parameters

mixed $gray

0 - 100

setGray()

setGray(mixed  $gray) : \Pop\Image\Color\Gray

Set the gray value

Parameters

mixed $gray

Throws

\OutOfRangeException

Returns

\Pop\Image\Color\Gray

getGray()

getGray() : float

Get the gray value

Returns

float