imagecharup

(PHP 4, PHP 5, PHP 7)

imagecharup锟斤拷直锟截伙拷一锟斤拷锟街凤拷

说锟斤拷

imagecharup ( resource $image , int $font , int $x , int $y , string $c , int $color ) : bool

imagecharup() 锟斤拷锟街凤拷 c 锟斤拷直锟截伙拷锟斤拷 image 指锟斤拷锟斤拷图锟斤拷锟较o拷位锟斤拷 x锟斤拷y锟斤拷图锟斤拷锟斤拷锟较斤拷为 0, 0锟斤拷锟斤拷锟斤拷色为 color锟斤拷锟斤拷锟� font 为 1锟斤拷2锟斤拷3锟斤拷4 锟斤拷 5锟斤拷锟斤拷使锟斤拷锟斤拷锟矫碉拷锟斤拷锟藉。

Example #1 imagecharup() 锟斤拷锟斤拷

<?php

$im 
imagecreate(100,100);

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

$bg imagecolorallocate($im255255255);
$black imagecolorallocate($im000);

// prints a black "Z" on a white background
imagecharup($im31010$string$black);

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

?>

锟轿硷拷 imagechar() 锟斤拷 imageloadfont()锟斤拷