‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Imaging\ImageDimension Class Reference

Public Member Functions

 __construct (private readonly int $width, private readonly int $height)
 

Static Public Member Functions

static fromProcessingTask (TaskInterface $task)
 

Public Attributes

int< 0, function getWidth():int { return $this-> width
 
int< 0, function getHeight():int { return $this-> height
 

Detailed Description

Representing an image dimension (width and height) and calculating the dimension from a source with a given processing instruction

Definition at line 27 of file ImageDimension.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Imaging\ImageDimension::__construct ( private readonly int  $width,
private readonly int  $height 
)
Parameters
int<0,max>‪$width
int<0,max>‪$height

Definition at line 33 of file ImageDimension.php.

Member Function Documentation

◆ fromProcessingTask()

static TYPO3\CMS\Core\Imaging\ImageDimension::fromProcessingTask ( TaskInterface  $task)
static

Member Data Documentation

◆ height

int<0, function getHeight(): int { return $this-> TYPO3\CMS\Core\Imaging\ImageDimension::height
Returns
‪int<0, max>

Definition at line 51 of file ImageDimension.php.

◆ width

int<0, function getWidth(): int { return $this-> TYPO3\CMS\Core\Imaging\ImageDimension::width
Returns
‪int<0, max>

Definition at line 43 of file ImageDimension.php.