class final readonly Core · roukmoute/pdf 0.6.2

PDF\Graphics\Patterns\Shadings\DecodeInterval
Direction-preserving Decode endpoints, including reversed and constant intervals (8.9.5.2).

Read the source declaration ↗

Inheritance and contracts

This type declares no parent, interface or trait.

Construction

__construct()

public function __construct(PDF\Syntax\Object\NumericType $first, PDF\Syntax\Object\NumericType $last)

Declared by PDF\Graphics\Patterns\Shadings\DecodeInterval · View the code ↗

Declared methods

decode()

public function decode(int $sample, int $bits): PDF\Syntax\Object\NumericType

Declared by PDF\Graphics\Patterns\Shadings\DecodeInterval · View the code ↗

domain()

public function domain(): PDF\Functions\NumberInterval

Declared by PDF\Graphics\Patterns\Shadings\DecodeInterval · View the code ↗

encode()

public function encode(PDF\Syntax\Object\NumericType $number, int $bits): int

Declared by PDF\Graphics\Patterns\Shadings\DecodeInterval · View the code ↗

Properties