/** * Crop this image to desired dimensions. Crops the currently loaded * view present in the Horde_Image object. * * @see Horde_Image_Base::crop for explanation of parameters * * @param integer $x1 * @param integer $y1 * @param integer $x2 * @param integer $y2 * * @throws Ansel_Exception */ public function crop($x1, $y1, $x2, $y2) { $this->_dirty = true; try { $this->_image->crop($x1, $y1, $x2, $y2); } catch (Horde_Image_Exception $e) { throw new Ansel_Exception($e); } }