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

public __construct ( $src_image, $src_w, $src_h )
Пример #1
0
 /**
  * 
  * @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();
 }
Пример #2
0
 public function __construct($filename = null)
 {
     $this->load_image = "imagecreatefromgif";
     $this->save_image = "imagegif";
     $this->mime_type = "image/gif";
     parent::__construct($filename);
 }