Cheetah
|
Public Member Functions | |
__construct (Size $size) | |
getSize () | |
fix ($type) | |
isFixed ($type) | |
aspectRatio () | |
upsize () | |
Public Attributes | |
const | ASPECTRATIO = 1 |
const | UPSIZE = 2 |
Definition at line 5 of file Constraint.php.
Intervention\Image\Constraint::__construct | ( | Size | $size | ) |
Create a new constraint based on size
Size | $size |
Definition at line 36 of file Constraint.php.
Intervention\Image\Constraint::aspectRatio | ( | ) |
Intervention\Image\Constraint::fix | ( | $type | ) |
Fix the given argument in current constraint
integer | $type |
Definition at line 56 of file Constraint.php.
Intervention\Image\Constraint::getSize | ( | ) |
Returns current size of constraint
Definition at line 46 of file Constraint.php.
Intervention\Image\Constraint::isFixed | ( | $type | ) |
Checks if given argument is fixed in current constraint
integer | $type |
Definition at line 67 of file Constraint.php.
Intervention\Image\Constraint::upsize | ( | ) |
Fixes possibility to size up in current constraint
Definition at line 87 of file Constraint.php.
const Intervention\Image\Constraint::ASPECTRATIO = 1 |
Bit value of aspect ratio constraint
Definition at line 10 of file Constraint.php.
const Intervention\Image\Constraint::UPSIZE = 2 |
Bit value of upsize constraint
Definition at line 15 of file Constraint.php.