Documentation

Gray extends AbstractColor
in package

Pdf page gray color class

Tags
category

Pop

author

Nick Sagona, III dev@nolainteractive.com

copyright

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

license

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

version
4.2.0

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
Tags
throws
OutOfRangeException
Return values
Gray

Search results