Altta bulunan Php kodu sayesinde resim üzerine yazı yazabilirsiniz.
- <?php
- // Dosya Türü
- header(“Content-type:Â image/png”);
- // Resim oluşturuluyor
- $im = imagecreatetruecolor(400, 30);
- // Renkler oluşturuluyor
- $white = imagecolorallocate($im, 255, 255, 255);
- $grey = imagecolorallocate($im, 128, 128, 128);
- $black = imagecolorallocate($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
- imagettftext($im, 20, 0, 11, 21, $grey, $font, $text);
- // Resim üzerine yazı ekleniyor
- imagettftext($im, 20, 0, 10, 20, $black, $font, $text);
- // Using imagepng() results in clearer text compared with imagejpeg()
- imagepng($im);
- imagedestroy($im);
- ?>
gercekten harika bi site paylasimin icin tesekurler.
Faydalı bir yazı olmuş değerlendireceğim.
çok güzel yazı beğendim yanlız şu görgüsüz cansel degerlendirmeyi bilmiyorsa boş yere laf atmasın