Beispiel #1
0
 /**
  * @param $width
  * @param $height
  * @return Imagick
  */
 protected function createImage($width, $height, $color = "transparent")
 {
     $newImage = new \Imagick();
     $newImage->newimage($width, $height, $color);
     return $newImage;
 }
Beispiel #2
0
 /**
  * @param $width
  * @param $height
  * @return Imagick
  */
 protected function createImage($width, $height, $color = "transparent")
 {
     $newImage = new \Imagick();
     $newImage->newimage($width, $height, $color);
     $newImage->setImageFormat($this->resource->getImageFormat());
     return $newImage;
 }