phpdftk API Documentation

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

Methods

__construct()

public __construct(float $gray) : mixed
Parameters
$gray : float

black()

public static black() : self
Return values
self

getColorSpace()

public getColorSpace() : string
Return values
string

toArray()

public toArray() : array<int, float>
Return values
array<int, float>

white()

public static white() : self
Return values
self

        
On this page

Search results