Ana Sayfa En Yeni 50 Kod En Popüler 50 Kod Sen de Yaz Bize Ulaşın
Sponsorlar
Programlama > PHP


Resime metin ekle

Herhangibi resim üzerine yazı yazabilirsiniz. yazdığım bu php kodu gerçekten işe yarıyor

<?php
$dosya = ""; // png dosyası olmalı :)
header("Content-type: image/png");
$metin = "Emrah Ülker";
$resim = imagecreatefrompng("$dosya");
$turuncu = imagecolorallocate($resim, 220, 210, 60);
$px = (imagesx($resim) - 7.5 * strlen($metin)) / 2;
imagestring($resim, 2, $px, 9, $metin, $turuncu);
imagejpeg($resim);
imagedestroy($resim);

?>

emrah ülker
emrah@planesoft.net
Ana Sayfa   Ana sayfam yap   Favorilerime ekle   Bize Ulaşın
© 2002 - 2010 Hazır Kod Programlama - Türkiye