GrayColor
in package
implements
ColorInterface
FinalYes
Grayscale color (0.0 = black, 1.0 = white) — maps to PDF DeviceGray.
Table of Contents
Interfaces
- ColorInterface
- Common contract for PDF color operands — used by ContentStream color operators.
Properties
- $gray : float
Methods
- __construct() : mixed
- black() : self
- getColorSpace() : string
- toArray() : array<int, float>
- toRgb() : RgbColor
- white() : self
Properties
$gray read-only
public
float
$gray
Methods
__construct()
public
__construct(float $gray) : mixed
Parameters
- $gray : float
black()
public
static black() : self
Return values
selfgetColorSpace()
public
getColorSpace() : string
Return values
stringtoArray()
public
toArray() : array<int, float>
Return values
array<int, float>toRgb()
public
toRgb() : RgbColor
Return values
RgbColorwhite()
public
static white() : self