Area

class \TYPO3\CMS\Core\Imaging\ImageManipulation\Area

Table of Contents

Properties

$height  : float
$width  : float
$x  : float
$y  : float

Methods

__construct()  : mixed
__toString()  : string
applyRatioRestriction()  : Area
asArray()  : array
createEmpty()  : Area
createFromConfiguration()  : Area
createMultipleFromConfiguration()  : Area[]
getHeight()  : float
getOffsetLeft()  : float
getOffsetTop()  : float
getWidth()  : float
isEmpty()  : bool
makeAbsoluteBasedOnDimension()  : self
Same as makeAbsoluteBasedOnFile(), for a source whose dimensions are already known rather than read from a FileInterface's cached width/height properties - for example a system resource outside the File Abstraction Layer, which has no such properties to read.
makeAbsoluteBasedOnFile()  : Area
makeRelativeBasedOnDimension()  : self
Same as makeRelativeBasedOnFile(), for a source whose dimensions are already known rather than read from a FileInterface's cached width/height properties - for example a system resource outside the File Abstraction Layer, which has no such properties to read.
makeRelativeBasedOnFile()  : Area

Properties

Methods

__construct()

public __construct(float $x, float $y, float $width, float $height) : mixed

Parameters

$x : float
$y : float
$width : float
$height : float

__toString()

public __toString() : string

Return values

string

asArray()

public asArray() : array

Return values

array

getHeight()

public getHeight() : float

Return values

float

getOffsetLeft()

public getOffsetLeft() : float

Return values

float

getOffsetTop()

public getOffsetTop() : float

Return values

float

getWidth()

public getWidth() : float

Return values

float

isEmpty()

public isEmpty() : bool

Return values

bool

makeAbsoluteBasedOnDimension()

Same as makeAbsoluteBasedOnFile(), for a source whose dimensions are already known rather than read from a FileInterface's cached width/height properties - for example a system resource outside the File Abstraction Layer, which has no such properties to read.

public makeAbsoluteBasedOnDimension(ImageDimension $dimension) : self

Parameters

$dimension : ImageDimension

Return values

self

makeRelativeBasedOnDimension()

Same as makeRelativeBasedOnFile(), for a source whose dimensions are already known rather than read from a FileInterface's cached width/height properties - for example a system resource outside the File Abstraction Layer, which has no such properties to read.

public makeRelativeBasedOnDimension(ImageDimension $dimension) : self

Parameters

$dimension : ImageDimension

Return values

self
On this page