[php]imagechar - 水平地畫一個字符


例子 1. imagechar() 例子
<?php


$im = imagecreate(100,100);


$string = 'PHP';


$bg = imagecolorallocate($im, 255, 255, 255);
$black = imagecolorallocate($im, 0, 0, 0);


// prints a black "P" in the top left corner
imagechar($im, 1, 0, 0, $string, $black);


header('Content-type: image/png');
imagepng($im);


?>

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 stockwfj3 的頭像
    stockwfj3

    程式設計@筆記

    stockwfj3 發表在 痞客邦 留言(0) 人氣()