class final readonly Optional · pdftoolkit/pdf-to-html 0.8.4

PDF\Html\Reading\PngSampleEncoder
Exact PDF gray/RGB samples in legal PNG depths, with no colour transform or alpha approximation.

Read the source declaration ↗

Inheritance and contracts

This type declares no parent, interface or trait.

Construction

__construct()

public function __construct(PDF\Html\Reading\ReadingBudget $budget)

Declared by PDF\Html\Reading\PngSampleEncoder · View the code ↗

Declared methods

encode()

public function encode(string $pixels, int $width, int $height, int $components, int $bits, bool $alpha = false, ?string $iccProfile = null): string

Declared by PDF\Html\Reading\PngSampleEncoder · View the code ↗