(PHP 4, PHP 5, PHP 7)
imagecharup — 锟斤拷直锟截伙拷一锟斤拷锟街凤拷
$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($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);
?>
锟轿硷拷 imagechar() 锟斤拷 imageloadfont()锟斤拷