<?php
$im = imagecreatetruecolor(100, 100);
$string = 'PHP';
$bg = imagecolorallocate($im, 255, 255, 255); $black = imagecolorallocate($im, 0, 0, 0);
// affiche un "P" noir dans le coin gauche en haut imagechar($im, 1, 0, 0, $string, $black);
header('Content-type: image/png'); imagepng($im);
?>
|