class final readonly Optional · pdftoolkit/pdf-reader 0.8.1

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

Read the source declaration ↗

Inheritance and contracts

This type declares no parent, interface or 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.

Declared by PDF\Reading\ImageCodecs\DecodedImage · View the code ↗

Declared methods

byteLength()

public function byteLength(): int

Declared by PDF\Reading\ImageCodecs\DecodedImage · View the code ↗

retainedBytes()

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

Declared by PDF\Reading\ImageCodecs\DecodedImage · View the code ↗

streamBytes()

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

Declared by PDF\Reading\ImageCodecs\DecodedImage · View the code ↗

Properties

DeclarationOrigin and 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