Example #1
0
 /**
  * Resize this image into a new Image instance
  * @param int width width of the resulting image
  * @param int height of the resulting image
  * @return Image new Image instance with a resized version of this image
  */
 public function resize($width, $height)
 {
     $result = new self(null, $width, $height);
     $result->copyResource($this->resource, 0, 0, 0, 0, $width, $height, $this->getWidth(), $this->getHeight());
     return $result;
 }