Browse Source

do not bother with an extraneous fill, and don't create out.png

tags/v0.99.beta17
Ben Wiley Sittler bsittler 16 years ago
parent
commit
d0a08f2be2
1 changed files with 0 additions and 2 deletions
  1. +0
    -2
      caca-php/examples/test.php

+ 0
- 2
caca-php/examples/test.php View File

@@ -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()


Loading…
Cancel
Save