Neos\Media\Domain\Model\Adjustment\CropImageAdjustment::applyToImage PHP Метод

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

Applies this adjustment to the given Imagine Image object
public applyToImage ( Imagine\Image\ImageInterface $image ) : Imagine\Image\ImageInterface
$image Imagine\Image\ImageInterface
Результат Imagine\Image\ImageInterface
    public function applyToImage(ImagineImageInterface $image)
    {
        $point = new Point($this->x, $this->y);
        $box = new Box($this->width, $this->height);
        return $image->crop($point, $box);
    }