Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]token zmiana czcionki
!*!
post
Post #1





Grupa: Zarejestrowani
Postów: 4 298
Pomógł: 447
Dołączył: 16.11.2006

Ostrzeżenie: (0%)
-----


Jak mógę tutaj zmienić wielkość wyświetlanej czcionki:

  1. <?php
  2. $slowo= $_SESSION['token'];// dane z sesji
  3. $width=60;
  4. $height=20;
  5.  
  6. $img=ImageCreate($width,$height);
  7. $bialy=ImageColorAllocate($img,255,255,255);
  8. $czarny=ImageColorAllocate($img,0,0,0);
  9. $szary=ImageColorAllocate($img,220, 220, 220);
  10.  
  11. ImageFill($img,1,1,$bialy);
  12. for($i=0;$i<200;$i++)
  13.    {
  14.    $los1=rand(0,$width);
  15.    $los2=rand(0,$height);
  16.    
  17.    ImageLine($img,$los1,$los2,$los1,$los2,$szary);
  18.    }
  19.    for($i=0;$i<strlen($slowo) ;$i++)
  20.    {
  21.    $rozmiar=rand(5,5);
  22.  
  23.    ImageString($img,$rozmiar,$i*10+10,3,trim($slowo[$i]),$czarny);
  24.    }
  25.    Header("Content-typ: image/png");
  26. ImageGIF($img);
  27. ?>


  1. <?php
  2. $rozmiar=rand(5,5);
  3. ?>


to za mało.
Go to the top of the page
+Quote Post

Posty w temacie
- !*!   [PHP]token zmiana czcionki   12.09.2008, 18:56:47
- - marcio   Funkcja imagestring() nie oferuje duzo max to 5 mu...   12.09.2008, 19:00:04


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 22.08.2025 - 20:31