Quellcode durchsuchen

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

tags/v0.99.beta17
Ben Wiley Sittler bsittler vor 16 Jahren
Ursprung
Commit
d0a08f2be2
1 geänderte Dateien mit 0 neuen und 2 gelöschten Zeilen
  1. +0
    -2
      caca-php/examples/test.php

+ 0
- 2
caca-php/examples/test.php Datei anzeigen

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


Laden…
Abbrechen
Speichern