From d0a08f2be2ea3c06425a1e3fd7d3dc2d9acd50a7 Mon Sep 17 00:00:00 2001 From: Ben Wiley Sittler Date: Thu, 6 Nov 2008 23:21:15 +0000 Subject: [PATCH] do not bother with an extraneous fill, and don't create out.png --- caca-php/examples/test.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/caca-php/examples/test.php b/caca-php/examples/test.php index 9fd1a60..30031ef 100755 --- a/caca-php/examples/test.php +++ b/caca-php/examples/test.php @@ -49,12 +49,10 @@ class DemoCanvas extends Canvas $w = $f->getWidth() * strlen($message); $h = $f->getHeight(); $this->image = imagecreatetruecolor($w, $h); - imagefilledrectangle($this->image, 0, 0, $w - 1, $h - 1, imagecolorallocatealpha($this->image, 0, 0, 0, 127)); imagealphablending($this->image, false); imagesavealpha($this->image, true); $this->d = new Dither($this->image); $f->Render($this->scroll, $this->image); - imagepng($this->image, "out.png"); } function Draw()