位置: 编程技术 - 正文
推荐整理分享PHP:png2wbmp()的用法_GD库图像处理函数(php nl2br),希望有所帮助,仅作参考,欢迎阅读内容。
文章相关热门搜索词:phppi,phpwamp,php imagestring,php img,php imagestring,php imagefill,php imagefill,php imagestring,内容如对您有帮助,希望把文章链接给更多的朋友!
(PHP 4 >= 4.0.5, PHP 5)
png2wbmp — 将 PNG 图像文件转换为 WBMP 图像文件
说明 bool png2wbmp ( string $pngname , string $wbmpname , int $dest_height , int $dest_width , int $threshold )将名为 pngname 的 PNG 文件转换为 WBMP 格式,并存为 wbmpname。用 d_height 和 d_width 指定目标图像的高度和宽度。
参数pngname
PNG 文件的路径。
wbmpname目标 WBMP 文件的路径。
dest_height目标图像的高度。
dest_width目标图像的宽度。
threshold阈值,在 0 到 8 之间(含)。
返回值成功时返回 TRUE, 或者在失败时返回 FALSE。
范例
Example #1 png2wbmp() 例子
<?php//Pathtothetargetpng$path='./test.png';//Gettheimagesizes$image=getimagesize($path);//Convertimagepng2wbmp($path,'./test.wbmp',$image[1],$image[0],7);?> 注释Note: WBMP 支持仅在 PHP 与 GD-1.8 或更高版本一起编译时可用。
参见jpeg2wbmp() - 将 JPEG 图像文件转换为 WBMP 图像文件
PHP:jpeg2wbmp()的用法_GD库图像处理函数 jpeg2wbmp(PHP4=4.0.5,PHP5)jpeg2wbmp将JPEG图像文件转换为WBMP图像文件说明booljpeg2wbmp(string$jpegname,string$wbmpname,int$dest_height,int$dest_width,int$threshold)将JPEG图像文件转
PHP:iptcparse()的用法_GD库图像处理函数 iptcparse(PHP4,PHP5)iptcparse将二进制IPTC块解析为单个标记说明arrayiptcparse(string$iptcblock)本函数将一个二进制的IPTC块解析为单个的标记。参数iptcblock二进制的IP
PHP:imagexbm()的用法_GD库图像处理函数 imagexbm(PHP5)imagexbm将XBM图像输出到浏览器或文件说明boolimagexbm(resource$image,string$filename[,int$foreground])将XBM图像image输出到浏览器或文件参数image由图象创建
标签: php nl2br
本文链接地址:https://www.jiuchutong.com/biancheng/284735.html 转载请保留说明!友情链接: 武汉网站建设