Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php], Tworzenie JPG
motor
post 12.10.2006, 13:17:06
Post #1





Grupa: Zarejestrowani
Postów: 211
Pomógł: 0
Dołączył: 15.12.2005

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


Generuje sobie obrazki z napisami , jakiej funki mam użyć aby do generowanego obrazka wstawić inny jpg ?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
motor
post 12.10.2006, 14:48:00
Post #2





Grupa: Zarejestrowani
Postów: 211
Pomógł: 0
Dołączył: 15.12.2005

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


  1. <?php
  2. $img = imagecreate (750, 100) or die("Cannot Initialize new GD image stream ");
  3. $backgroundcolor = imagecolorallocate ($img, 255, 255, 255);
  4. $orange = imagecolorallocate($img, 252, 102, 4);
  5. $blue = imagecolorallocate($img, 0, 0, 255);
  6. $red = imagecolorallocate($img, 255, 0, 0);
  7. $black = imagecolorallocate($img, 0, 0, 0);
  8.  
  9. imagecopymerge($img, $imgwzor, 10, 10, 10, 10, 750, 100, 90 );
  10.  
  11.  
  12. imagettftext($img, 12, 0, 10, 20, $blue, 'verdana.ttf', "Data: $data godz. $godzina");
  13.  
  14.  
  15. imagettftext($img, 26, 0, 20, 60, $orange, 'arial.ttf', "$stan_m");
  16.  
  17.  
  18.  
  19. imagesetthickness ($img,1);
  20. ImageRectangle($img,1,99,749,1,$blue);
  21. ?>
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Wersja Lo-Fi Aktualny czas: 14.08.2025 - 21:42