Resim üzerine yazı yazma

aXi
  • Kullanıcı aXi
  • Başlangıç tarihi Başlangıç tarihi
  • - Asp & Php
FORUMSAL.NET YENİDEN ERİŞİME AÇILDI ForumSAL · Bilgilendirme

Yaşanan süreçte sabır gösteren ve yanımızda olan tüm üyelerimize teşekkür ederiz. Alternatif adreslerimiz üzerinden de bize ulaşabilirsiniz.

Alternatif erişim adreslerimiz
Selam arkadaslar online olarak herhangi bir resim veya seçtiğiniz bir renk üzerine istediğiniz renk, boyut, font ve koordinatlarda yazı ekleme örneği bknz;​











<?<SPAN class=colorKeywords3 sizcache="0" sizset="14"><STRONG sizcache="0" sizset="14"><A class="st_tag internal_tag" title="Posts tagged with PHP" href="http://www.coders.gen.tr/etiket/php" rel=tag>Php</A></STRONG></SPAN>
// Dosya Türü
header("Content-type: image/png"); ​

// Resim oluşturuluyor
$im = imagecreatetruecolor(400, 30);
​


// Renkler oluşturuluyor
$white = <A class="st_tag internal_tag" title="Posts tagged with imagecolorallocate" href="http://www.coders.gen.tr/etiket/imagecolorallocate" rel=tag>imagecolorallocate</A>($im, 255, 255, 255);
$grey = <A class="st_tag internal_tag" title="Posts tagged with imagecolorallocate" href="http://www.coders.gen.tr/etiket/imagecolorallocate" rel=tag>imagecolorallocate</A>($im, 128, 128, 128);
$black = <A class="st_tag internal_tag" title="Posts tagged with imagecolorallocate" href="http://www.coders.gen.tr/etiket/imagecolorallocate" rel=tag>imagecolorallocate</A>($im, 0, 0, 0);
imagefilledrectangle($im, 0, 0, 399, 29, $white); ​

// Yazı yazılıyor
$text = 'Deneme...'; ​

// Font seçiliyor
$font = 'arial.ttf'; ​

// Yazıya gölge ekleneiyor
<A class="st_tag internal_tag" title="Posts tagged with imagettftext" href="http://www.coders.gen.tr/etiket/imagettftext" rel=tag>imagettftext</A>($im, 20, 0, 11, 21, $grey, $font, $text); ​

// Resim üzerine yazı ekleniyor
<A class="st_tag internal_tag" title="Posts tagged with imagettftext" href="http://www.coders.gen.tr/etiket/imagettftext" rel=tag>imagettftext</A>($im, 20, 0, 10, 20, $black, $font, $text); ​

// Using <A class="st_tag internal_tag" title="Posts tagged with imagepng" href="http://www.coders.gen.tr/etiket/imagepng" rel=tag>imagepng</A>() results in clearer text compared with <A class="st_tag internal_tag" title="Posts tagged with imagejpeg" href="http://www.coders.gen.tr/etiket/imagejpeg" rel=tag>imagejpeg</A>()
<A class="st_tag internal_tag" title="Posts tagged with imagepng" href=" rel=tag>imagepng</A>($im);
imagedestroy($im);
?>​

 
Geri