class final readonly Core · roukmoute/pdf 0.6.1

PDF\Graphics\Halftones\ThresholdArray
Actual 8/16-bit MSB threshold data, with exact count and bounded construction.

Read the source declaration ↗

Inheritance and contracts

This type declares no parent, interface or trait.

Construction

__construct()

public function __construct(int $bits, int $count, Traversable|array|string $samples, int $maximumBytes = 67108864)
@param string|iterable<int> $samples

Declared by PDF\Graphics\Halftones\ThresholdArray · View the code ↗

Declared methods

sample()

public function sample(int $index): int

Declared by PDF\Graphics\Halftones\ThresholdArray · View the code ↗

Properties

DeclarationOrigin and documentation
public readonly int $bitsPDF\Graphics\Halftones\ThresholdArray
public readonly string $bytesPDF\Graphics\Halftones\ThresholdArray
public readonly int $countPDF\Graphics\Halftones\ThresholdArray