Hallo,
So, jetzt weiß ich nicht mehr weiter.
irgendwie funktioniert das imagealphablending nicht.
<?
// Bild mit PHP erzeugt
Header( "Content-type: image/png");
$bild = imagecreate(500,500);
imagealphablending($bild,TRUE);
$farbe0 = imagecolorallocatealpha($bild, 0, 255, 100, 127);
$farbe1 = imagecolorallocatealpha($bild, 0, 255, 100, 64);
$farbe2 = imagecolorallocatealpha($bild, 60, 0, 0, 100);
imagefilledrectangle($bild,0,0,0,0,$farbe0);
imagefilledrectangle($bild,20,20,185,190,$farbe1);
imagefilledrectangle($bild,180,180,200,200,$farbe2);
imagepng($bild);
imagedestroy($bild);
?>
Ist jetzt nur zum üben gedacht, aber trotzdem.
Ich will das dritte rechteck über das zweite legen, so, dass eine Ecke durchscheint. aber irgendwie klappt des nicht. wai.
was mache ich falsch?