PHP Class Neos\Media\Imagine\Box

Inheritance: implements Imagine\Image\BoxInterface
Show file Open project: neos/neos-development-collection Class Usage Examples

Public Methods

Method Description
__construct ( integer $width, integer $height ) Constructs the Size with given width and height
__toString ( )
contains ( Imagine\Image\BoxInterface $box, Imagine\Image\PointInterface $start = null )
getHeight ( )
getWidth ( )
heighten ( $height )
increase ( $size )
scale ( $ratio )
square ( )
widen ( $width )

Method Details

__construct() public method

Constructs the Size with given width and height
public __construct ( integer $width, integer $height )
$width integer
$height integer

__toString() public method

public __toString ( )

contains() public method

public contains ( Imagine\Image\BoxInterface $box, Imagine\Image\PointInterface $start = null )
$box Imagine\Image\BoxInterface
$start Imagine\Image\PointInterface

getHeight() public method

public getHeight ( )

getWidth() public method

public getWidth ( )

heighten() public method

public heighten ( $height )

increase() public method

public increase ( $size )

scale() public method

public scale ( $ratio )

square() public method

public square ( )

widen() public method

public widen ( $width )