Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- header ("Content-type: image/png");
- $im = @imagecreate (300, 300) or die ("Cannot Initialize new GD image stream");
- $background_color = imagecolorallocate ($im, 64, 114, 231);
- $text_color = imagecolorallocate ($im, 233, 14, 91);
- imageantialias($im, true);
- $red = imagecolorallocate($im, 255, 0, 0);
- imagerectangle($im, 20, 20, 80, 80, $red);
- imageline($im, 20, 20, 120, 120, $red);
- imagettftext($im, 55, 5, 20, 140, $red, "bellb.ttf", "PHP5");
- imagepng ($im);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement