Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php] imagefill()
-Himp-
post
Post #1





Goście







  1. <?
  2.  
  3. header("Content-type: image/png");
  4. echo"<img src="licznik.php?wizyty=".$licz."" />";
  5.  
  6. $orange=imagecolorallocate($img,220,210,60);
  7. $white=imagecolorallocate($img,225,225,225);
  8. $black=imagecolorallocate($img,0,0,0);
  9.  
  10. imagefill($img,0,0,$black);
  11.  
  12. ?>


Cytat


Co jest nie tak?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
-Gość-
post
Post #2





Goście







Ale co mam pokazywać jak wstawiłem to co mi dałeś

  1. <?
  2. header('Content-type: image/png');
  3.  
  4. $resImg = imagecreatetruecolor( 100, 200 ); // wypadałoby stworzyć obrazek!
  5.  
  6. $intBlack = imagecolorallocate( $resImg, 0, 0, 0 );
  7.  
  8. imagefill( $resImg, 0, 0, $intBlack );
  9.  
  10. imagepng( $resImg ); // dać go na ekran
  11. imagedestroy( $resImg ); // i wywalić z pamięci
  12.  
  13. ?>
<img src="graphic.php">
Go to the top of the page
+Quote Post

Posty w temacie


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: 5.10.2025 - 02:07