Advertisement
DraKiNs

[COD] Create Image PHP

Jun 26th, 2011
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.41 KB | None | 0 0
  1. <?php
  2. // cria uma imagem de 100*30
  3.   $im = imagecreate(200, 20);
  4.  
  5.   // fundo branco e texto azul
  6.   $bg = imagecolorallocate($im, 255, 255, 255);
  7.   $textcolor = imagecolorallocate($im, 0, 0, 255);
  8.  
  9.   // escreve a string em cima na esquerda
  10.   imagestring($im, 5, 10, 0, "Moro Logo Ali Downloads", $textcolor);
  11.  
  12.   // envia a imagem
  13.   header("Content-type: image/png");
  14.   imagepng($im);
  15. ?>
  16.  
  17. ///by garfield
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement