class final readonly Optionnel · pdftoolkit/pdf-reader 0.8.1

PDF\Reading\ImageCodecs\DecodedImage
Immutable component planes and their intrinsic geometry.

Lire la déclaration source ↗

Héritage et contrats

Ce type ne déclare pas de parent, d’interface ou de trait.

Construction

__construct()

public function __construct(int $width, int $height, array $components, PDF\Reading\ImageCodecs\ColorInformation $color = new ColorInformation(), int $originX = 0, int $originY = 0, string $backend = 'application', array $channelDefinitions = [], array $chromaKey = [])
@param non-empty-list<ComponentPlane> $components
@param list<ChannelDefinition> $channelDefinitions
@param list<int> $chromaKey JPX opacity metadata; ignored by PDF image composition.

Déclarée par PDF\Reading\ImageCodecs\DecodedImage · Voir le code ↗

Méthodes déclarées

byteLength()

public function byteLength(): int

Déclarée par PDF\Reading\ImageCodecs\DecodedImage · Voir le code ↗

retainedBytes()

public function retainedBytes(): int
Conservative retained-byte accounting includes copied colour metadata.

Déclarée par PDF\Reading\ImageCodecs\DecodedImage · Voir le code ↗

streamBytes()

public function streamBytes(int $maximum, PDF\Reading\ImageCodecs\ImageLimits $limits): string
Interleave only a representation that does not discard plane metadata.

Déclarée par PDF\Reading\ImageCodecs\DecodedImage · Voir le code ↗

Propriétés

DéclarationProvenance et documentation
public readonly string $backendPDF\Reading\ImageCodecs\DecodedImage
public readonly array $channelDefinitionsPDF\Reading\ImageCodecs\DecodedImage
public readonly array $chromaKeyPDF\Reading\ImageCodecs\DecodedImage
public readonly PDF\Reading\ImageCodecs\ColorInformation $colorPDF\Reading\ImageCodecs\DecodedImage
public readonly array $componentsPDF\Reading\ImageCodecs\DecodedImage
public readonly int $heightPDF\Reading\ImageCodecs\DecodedImage
public readonly int $originXPDF\Reading\ImageCodecs\DecodedImage
public readonly int $originYPDF\Reading\ImageCodecs\DecodedImage
public readonly int $widthPDF\Reading\ImageCodecs\DecodedImage