<?php header ("Content-type: image/jpeg"); $im = imagecreatetruecolor (350, 45); $black = imagecolorallocate ($im, 0, 0, 0); $white = imagecolorallocate ($im, 255, 255, 255); $font = imagepsloadfont ("bchbi.pfb"); // ou bien situez un de vos fichiers .pfb imagepstext ($im, "Test ... Ca marche!", $font, 32, $white, $black, 32, 32); imagepsfreefont ($font); imagejpeg ($im, "", 100); //Meilleure qualité... imagedestroy ($im); ?>
|