Gray
extends AbstractColor
in package
Pdf page 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
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