Autor | Zpráva | ||
---|---|---|---|
Nox Profil |
#1 · Zasláno: 19. 6. 2008, 12:27:34 · Upravil/a: Nox
Zdravím,
mám skript, který by měl vypsat text s outer glow (záře kolem), bez pozadí, s průhledností a dát do png (resp. napsat jeden, rozmazat ho a přes něj normálně druhý) Vše až na imagefilter funguje, pokud ho použiji, tak celý obrázek zčerná (asi nějaká kolize s alfa kanálem)...věděl by někdo co s tím? Díky moc! $img=imagecreatetruecolor(strlen($text)*$size+$size,25); imagealphablending($img,true); $white=imagecolorallocatealpha($img,255,255,255); $black=imagecolorallocate($img,0,0,0); $brown=imagecolorallocate($img,72,66,45); $yellow=imagecolorallocatealpha($img,250,200,0,80); imagefill($img,0,0,$white); //glow imagettftext($img,$size,0,$size,$size+2,$yellow,"GOTHIC.TTF",$text); imagefilter($img,IMG_FILTER_GAUSSIAN_BLUR); //text imagettftext($img,$size,0,$size,$size+2,$brown,"GOTHIC.TTF",$text); header ("Content-type: image/png"); imagealphablending($img,false); imagesavealpha($img,true); imagepng($img); imagedestroy($img); |
||
Časová prodleva: 16 let
|
0