downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Alfa kanallarını kullanarak resme damga basmak> <Örnekler
Last updated: Fri, 13 Nov 2009

view this page in

Örnek 1 PHP ile PNG oluşturmak

<?php

header
("Content-type: image/png");
$string $_GET['text'];
$foto     imagecreatefrompng("images/button1.png");
$turuncu imagecolorallocate($foto22021060);
$px     = (imagesx($foto) - 7.5 strlen($string)) / 2;
imagestring($foto3$px9$string$turuncu);
imagepng($foto);
imagedestroy($foto);

?>

Bu örnek bir sayfadan şöyle bir etiketle çağırlabilir: <img src="button.php?text=gönder">. Yukarıdaki button.php betiği bu "gönder" dizgesini alır ve "images/button1.png" resminin üzerine yerleştirip elde edilen resmi çıktılar. Bu yöntem, her düğme için ayrı bir düğme resmi kullanmaktan daha verimlidir. Bu yöntemle düğmeler devingen olarak üretilir.



add a note add a note User Contributed Notes
PHP ile PNG oluşturmak
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites