Methods summary
public
|
#
__construct( integer $width, integer $height )
Constructs the Size with given width and height
Constructs the Size with given width and height
Parameters
Throws
|
public
integer
|
#
getWidth( )
Gets current image width
Returns
integer integer
Implementation of
|
public
integer
|
#
getHeight( )
Gets current image height
Gets current image height
Returns
integer integer
Implementation of
|
public
Imagine\Image\BoxInterface
|
#
scale( float $ratio )
Creates new BoxInterface instance with ratios applied to both sides
Creates new BoxInterface instance with ratios applied to both sides
Parameters
Returns
Implementation of
|
public
Imagine\Image\BoxInterface
|
#
increase( integer $size )
Creates new BoxInterface, adding given size to both sides
Creates new BoxInterface, adding given size to both sides
Parameters
Returns
Implementation of
|
public
Boolean
|
#
contains( Imagine\Image\BoxInterface $box, Imagine\Image\PointInterface $start = null )
Checks whether current box can fit given box at a given start position, start
position defaults to top left corner xy(0,0)
Checks whether current box can fit given box at a given start position, start
position defaults to top left corner xy(0,0)
Parameters
Returns
Boolean Boolean
Implementation of
|
public
integer
|
#
square( )
Gets current box square, useful for getting total number of pixels in a given
box
Gets current box square, useful for getting total number of pixels in a given
box
Returns
integer integer
Implementation of
|
public
string
|
#
__toString( )
Returns a string representation of the current box
Returns a string representation of the current box
Returns
string string
Implementation of
|
public
Imagine\Image\BoxInterface
|
#
widen( integer $width )
Resizes box to given width, constraining proportions and returns the new
box
Resizes box to given width, constraining proportions and returns the new
box
Parameters
Returns
Implementation of
|
public
Imagine\Image\BoxInterface
|
#
heighten( integer $height )
Resizes box to given height, constraining proportions and returns the new
box
Resizes box to given height, constraining proportions and returns the new
box
Parameters
Returns
Implementation of
|