/** * * @param string $filename * @param image $sourceImage * @param rectangle $rectangle */ public function __construct($filename, $sourceImage, $rectangle) { parent::__construct($filename); $this->setType($sourceImage->getType()); $this->fromArea($sourceImage, $rectangle); $this->save(); }
public function __construct($filename = null) { $this->load_image = "imagecreatefromgif"; $this->save_image = "imagegif"; $this->mime_type = "image/gif"; parent::__construct($filename); }