Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php] Zapisywanie Wygenerowanego Obrazka :]
b4x
post
Post #1





Grupa: Zarejestrowani
Postów: 658
Pomógł: 95
Dołączył: 20.12.2005
Skąd: N54,35° E18,63° (Gdańsk)

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


Hmm chiałbym aby wygenerowany obrazek
$im był zapisywany np do katalogu ,, syg '' i np ; nazwy generowało : 34vfd4 (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)


  1. <?php
  2.  
  3. $im = imagecreate(strlen($text) * $wielkosca, $wielkoscb);
  4. $bgColor = imagecolorallocate($im, 255, 255, 255);
  5. $fgColor = imagecolorallocate($im,  0,  0, 255);
  6.  
  7. ?>

;D

Ten post edytował b4x 2.03.2006, 10:20:18
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
b4x
post
Post #2





Grupa: Zarejestrowani
Postów: 658
Pomógł: 95
Dołączył: 20.12.2005
Skąd: N54,35° E18,63° (Gdańsk)

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


heh (IMG:http://forum.php.pl/style_emoticons/default/biggrin.gif)


  1. <?php
  2. $im = imagecreatefrompng("test.png");
  3. imagepng($im);
  4. ?> 


niedziała mi (IMG:http://forum.php.pl/style_emoticons/default/sad.gif)

Cos takiego znalazlem (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)

  1. <?php
  2.  
  3. // generate unique id for use in filename
  4. $uniq = uniqid("");
  5.  
  6. // new file name
  7. $filename = $base_img_dir.$uniq;
  8.  
  9. ?>

To do generowania ? (IMG:http://forum.php.pl/style_emoticons/default/biggrin.gif)

Ten post edytował b4x 2.03.2006, 10:48:46
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: 6.10.2025 - 11:12