Searched refs:canvas (Results 1 – 1 of 1) sorted by relevance
215 // create a canvas to copy to, use truecolor if possible (except for gif)216 $canvas = false;218 $canvas = @imagecreatetruecolor($width, $height);220 if (!$canvas) {221 $canvas = @imagecreate($width, $height);223 if (!$canvas) {224 throw new Exception('Failed to create new canvas');229 imagealphablending($canvas, false);230 imagesavealpha($canvas, true);235 $this->keepGifTransparency($this->image, $canvas);[all...]