• 02-02-2009, 17:42:23
    #10
    çalışan kodlar bunlar
    <?php

    header("Content-type: image/png");
    $kat = "Kategori:82";
    $dosya = "Dosya: 65000";
    $online ="Online: 21";
    $im = imagecreatefrompng("1.png");
    $color = imagecolorallocate($im, 0, 0, 0);
    $px = (imagesx($im) - 7.5 * strlen($string)) / 2;

    imagestring($im, 3, 104, 40, TOPLAM, $color);
    imagestring($im, 2, 92, 55, $kat, $color);
    imagestring($im, 2, 93, 68, $dosya, $color);
    imagestring($im, 2, 94, 81, $online, $color);

    imagepng($im);
    imagedestroy($im);

    ?>
  • 02-02-2009, 18:40:50
    #11
    ve birde bu tarz

    <?
    session_start();
    header("Content-type: resimler/png");

    $resim = imagecreatefrompng("resimler/cicek.png");
    $kapalimavi = imagecolorallocate($resim, 39, 43, 109);
    $mavi = imagecolorallocate($resim, 18, 21, 68);

    $kirmizi = imagecolorallocate($resim, 237, 12, 28);

    $yazitipi1 = 'yazitipleri/200.TTF';
    $yazitipi2 = 'yazitipleri/201.TTF';
    $yazitipi3 = 'yazitipleri/202.TTF';

    imagettftext($resim, 15, 0, 8, 25, $kapalimavi, $yazitipi1, $_SESSION['TEXT111111111']);
    imagettftext($resim, 12, 0, 8, 45, $mavi, $yazitipi2, $_SESSION['TEXT222222222']);
    imagettftext($resim, 16, 0, 50, 70, $kirmizi, $yazitipi3, $_SESSION['TEXT33333333']);

    imagepng($resim);

    ?>