Thumbor\Url\CommandSet::crop PHP Метод

crop() публичный Метод

Manually specify crop window.
public crop ( $topLeftX, $topLeftY, $bottomRightX, $bottomRightY )
    public function crop($topLeftX, $topLeftY, $bottomRightX, $bottomRightY)
    {
        $this->crop = "{$topLeftX}x{$topLeftY}:{$bottomRightX}x{$bottomRightY}";
    }

Usage Example

Пример #1
0
 public function testCrop()
 {
     $commandSet = new CommandSet();
     $commandSet->crop(1, 2, 3, 4);
     $this->assertEquals(array('1x2:3x4'), $commandSet->toArray());
 }