位置: 编程技术 - 正文
推荐整理分享PHP:imagechar()的用法_GD库图像处理函数(php中imagecreatefromjpeg),希望有所帮助,仅作参考,欢迎阅读内容。
文章相关热门搜索词:php imagettftext,php imagettftext,php中imagestring,php中imagestring,php中imagestring,php中imagecreatefromjpeg,php image,php image,内容如对您有帮助,希望把文章链接给更多的朋友!
(PHP 4, PHP 5)
imagechar — 水平地画一个字符
说明 bool imagechar ( resource $image , int $font , int $x , int $y , string $c , int $color )imagechar() 将字符串 c 的第一个字符画在 image 指定的图像中,其左上角位于 x,y(图像左上角为 0, 0),颜色为 color。如果 font 是 1,2,3,4 或 5,则使用内置的字体(更大的数字对应于更大的字体)。
Example #1 imagechar() 例子
<?php$im=imagecreate(,);$string='PHP';$bg=imagecolorallocate($im,,,);$black=imagecolorallocate($im,0,0,0);//printsablack"P"inthetopleftcornerimagechar($im,1,0,0,$string,$black);header('Content-type:image/png');imagepng($im);?>参见 imagecharup() 和 imageloadfont()。
PHP:imagearc()的用法_GD库图像处理函数 imagearc(PHP4,PHP5)imagearc画椭圆弧说明boolimagearc(resource$image,int$cx,int$cy,int$w,int$h,int$s,int$e,int$color)imagearc()以cx,cy(图像左上角为0,0)为中心在image所代表的图
PHP:imagecolorallocatealpha()的用法_GD库图像处理函数 imagecolorallocatealpha(PHP4=4.3.2,PHP5)imagecolorallocatealpha为一幅图像分配颜色+alpha说明intimagecolorallocatealpha(resource$image,int$red,int$green,int$blue,int$alpha)imagecolorallocatea
PHP:imagecharup()的用法_GD库图像处理函数 imagecharup(PHP4,PHP5)imagecharup垂直地画一个字符说明boolimagecharup(resource$image,int$font,int$x,int$y,string$c,int$color)imagecharup()将字符c垂直地画在image指定的图像上,
友情链接: 武汉网站建设