public function restore()
    {
        $this->image = imagecreatetruecolor(imagesx($this->orgImage), imagesy($this->orgImage));
        imagecopy($this->image, $this->orgImage, 0, 0, 0, 0, imagesx($this->orgImage), imagesy($this->orgImage));

        return $this;
    }
public function restore()
    {
        $this->image = imagecreatetruecolor(imagesx($this->orgImage), imagesy($this->orgImage));
        imagecopy($this->image, $this->orgImage, 0, 0, 0, 0, imagesx($this->orgImage), imagesy($this->orgImage));

        return $this;
    }
public function restore ( ) { $ this -> image = imagecreatetruecolor ( imagesx ( $ this -> orgImage ) , imagesy ( $ this -> orgImage ) ) ; imagecopy ( $ this -> image , $ this -> orgImage , 0 , 0 , 0 , 0 , imagesx ( $ this -> orgImage ) , imagesy ( $ this -> orgImage ) ) ; return $ this ; }
Discard any changes made to the image and restore the original state
Discard any changes made to the image and restore the original state