Gray
extends AbstractColor
in package
Image gray color class
Tags
Table of Contents
- $gray : float
- Gray
- __construct() : mixed
- Constructor
- __toString() : string
- Method to print the color object
- getGray() : float
- Get the gray value
- setGray() : Gray
- Set the gray value
- toCmyk() : Cmyk
- Convert to CMYK
- toRgb() : Rgb
- Convert to RGB
Properties
$gray
Gray
protected
float
$gray
= 0
Methods
__construct()
Constructor
public
__construct(mixed $gray) : mixed
Instantiate a PDF Gray Color object
Parameters
- $gray : mixed
-
0 - 100
Return values
mixed —__toString()
Method to print the color object
public
__toString() : string
Return values
string —getGray()
Get the gray value
public
getGray() : float
Return values
float —setGray()
Set the gray value
public
setGray(mixed $gray) : Gray
Parameters
- $gray : mixed
Tags
Return values
Gray —toCmyk()
Convert to CMYK
public
toCmyk() : Cmyk
Return values
Cmyk —toRgb()
Convert to RGB
public
toRgb() : Rgb