class final readonly Optional · pdftoolkit/pdf-images 0.2.3

PDF\Images\PngSampleConverter
Preserves sample precision; indexed colour expands to RGB and opacity is unassociated.

Read the source declaration ↗

Inheritance and contracts

This type declares no parent, interface or trait.

Construction

__construct()

public function __construct(PDF\Images\ImageImportLimits $limits)

Declared by PDF\Images\PngSampleConverter · View the code ↗

Declared methods

convert()

public function convert(PDF\Images\PngRaster $raster, ?string $palette, ?string $transparency, ?PDF\Images\ImageIccProfile $profile, PDF\Images\ImageImportBudget $budget, ?PDF\Graphics\ColourSpaces\ColourSpace $colorSpace = null, ?PDF\Graphics\GraphicsState\RenderingIntent $intent = null): PDF\Document\Images\SampledImage

Declared by PDF\Images\PngSampleConverter · View the code ↗