public function cut($left, $top, $width, $height) { $new = new self(); $new->createtruecolor($width, $height); $new->preparecopy($this); $new->copyresampled($this->handle(), 0, 0, $left, $top, $width, $height, $width, $height); $this->sethandle($new->handler()); return $this; }