小白教程
所有教程
关于
Search
172.70.178.21
172.70.178.21
参数设置
贡献
退出
操作
编辑
移动
保护
信息
历史
删除
查看“Php imagecharup”的源代码
本页内容
上一节:
Php_imagechar
下一节:
Php_imagecolorallocate
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{DISPLAYTITLE:imagecharup()}}[[Category:PHP GD 图形处理函数参考手册|14]] = PHP imagecharup - 垂直地画一个字符 = [[:Category:PHP GD 图形处理函数参考手册]] imagecharup — 垂直地画一个字符。 === 语法 === <sample title="" desc="" lang="php" hererun="1"> bool imagecharup ( resource $image , int $font , int $x , int $y , string $c , int $color ) </sample> imagecharup() 将字符 c 垂直地画在 image 指定的图像上,位于 x,y(图像左上角为 0, 0),颜色为 color。如果 font 为 1,2,3,4 或 5,则使用内置的字体。 == <sample title="" desc="" lang="php" hererun="1"> <?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); // 在白色的背景上输出黑色的 "Z" imagecharup($im, 3, 10, 10, $string, $black); header('Content-type: image/png'); imagepng($im); ?> </sample> 以上实例输出结果的图片如下: === 相关文章 === * [[php imagechar|imagechar()]] 水平地画一个字符。 * [[php imageloadfont|imageloadfont()]] 载入一新字体。 [[:Category:PHP GD 图形处理函数参考手册]]
返回至“
Php imagecharup
”。
上一节:
Php_imagechar
下一节:
Php_imagecolorallocate