uawdijnntqw1x1x1
IP : 216.73.216.107
Hostname : toronto-dev2
Kernel : Linux toronto-dev2 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
srv
/
users
/
craft4
/
apps
/
craft4-newsite-space
/
vendor
/
pixelandtonic
/
imagine
/
src
/
Image
/
BoxInterface.php
/
/
<?php /* * This file is part of the Imagine package. * * (c) Bulat Shakirzyanov <mallluhuct@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Imagine\Image; /** * Interface for a box. */ interface BoxInterface { /** * Gets box height. * * @return int */ public function getHeight(); /** * Gets box width. * * @return int */ public function getWidth(); /** * Creates new BoxInterface instance with ratios applied to both sides. * * @param float $ratio * * @return static */ public function scale($ratio); /** * Creates new BoxInterface, adding given size to both sides. * * @param int $size * * @return static */ public function increase($size); /** * Checks whether current box can fit given box at a given start position, * start position defaults to top left corner xy(0,0). * * @param \Imagine\Image\BoxInterface $box * @param \Imagine\Image\PointInterface $start * * @return bool */ public function contains(BoxInterface $box, PointInterface $start = null); /** * Gets current box square, useful for getting total number of pixels in a * given box. * * @return int */ public function square(); /** * Returns a string representation of the current box. * * @return string */ public function __toString(); /** * Resizes box to given width, constraining proportions and returns the new box. * * @param int $width * * @return static */ public function widen($width); /** * Resizes box to given height, constraining proportions and returns the new box. * * @param int $height * * @return static */ public function heighten($height); }
/srv/users/craft4/apps/craft4-newsite-space/vendor/pixelandtonic/imagine/src/Image/BoxInterface.php