Advertisement
vladislavkopilov

10-2

Nov 19th, 2014
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.48 KB | None | 0 0
  1. <?php
  2.     header ("Content-type: image/png");
  3.     $im = @imagecreate (300, 300) or die ("Cannot Initialize new GD image stream");
  4.     $background_color = imagecolorallocate ($im, 64, 114, 231);
  5.     $text_color = imagecolorallocate ($im, 233, 14, 91);
  6.     imageantialias($im, true);
  7.     $red = imagecolorallocate($im, 255, 0, 0); 
  8.     imagerectangle($im, 20, 20, 80, 80, $red);
  9.     imageline($im, 20, 20, 120, 120, $red);
  10.     imagettftext($im, 55, 5, 20, 140, $red, "bellb.ttf", "PHP5");
  11.     imagepng ($im);
  12. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement