Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $img = imagecreatetruecolor(50, 50);
- $black = imagecolorallocate($img, 0, 0, 0);
- $white = imagecolorallocate($img, 255, 255, 255);
- imagefill($img, 0, 0, $white);
- imageline($img, 10, 10, 30, 30, $black);
- imageline($img, 30, 10, 10, 30, $black);
- header("Content-Type: image/png");
- imagepng($img);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement