class final readonly Core · roukmoute/pdf 0.6.2

PDF\Document\Images\ImageDimensions
Pixel dimensions, independent of the transformation used to paint the image.

Read the source declaration ↗

Inheritance and contracts

This type declares no parent, interface or trait.

Construction

__construct()

public function __construct(int $width, int $height)

Declared by PDF\Document\Images\ImageDimensions · View the code ↗

Declared methods

pixels()

public function pixels(): int

Declared by PDF\Document\Images\ImageDimensions · View the code ↗

rowBytes()

public function rowBytes(PDF\Document\Images\SampleLayout $layout): int
Rows start on byte boundaries; unused low bits of the last byte are padding.

Declared by PDF\Document\Images\ImageDimensions · View the code ↗

sampleBytes()

public function sampleBytes(PDF\Document\Images\SampleLayout $layout): int

Declared by PDF\Document\Images\ImageDimensions · View the code ↗

Properties

DeclarationOrigin and documentation
public readonly int $heightPDF\Document\Images\ImageDimensions
public readonly int $widthPDF\Document\Images\ImageDimensions