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

Public Member Functions

 __construct (private int $width, private 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

Static Private Member Functions

static getConfigurationForImageCropScaleMask (TaskInterface $task)

Detailed Description

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

Definition at line 30 of file ImageDimension.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Imaging\ImageDimension::__construct ( private int  $width,
private int  $height 

Definition at line 36 of file ImageDimension.php.

Member Function Documentation

◆ fromProcessingTask()

◆ getConfigurationForImageCropScaleMask()

Member Data Documentation

◆ height

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

Definition at line 55 of file ImageDimension.php.

◆ width

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

Definition at line 47 of file ImageDimension.php.