close


[php]imagecharup — 垂直地畫一個字符


官方例子
<?php


$im = imagecreate(100,100);


$string = 'Note that the first letter is a N';


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


// prints a black "Z" on a white background
imagecharup($im, 3, 10, 10, $string, $black);


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


?>

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

    程式設計@筆記

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