位置: 编程技术 - 正文

PHP:png2wbmp()的用法_GD库图像处理函数(php nl2br)

编辑:rootadmin
png2wbmp

推荐整理分享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 PHP:png2wbmp()的用法_GD库图像处理函数(php nl2br)

目标图像的高度。

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由图象创建

本文链接地址:https://www.jiuchutong.com/biancheng/284735.html 转载请保留说明!

上一篇:PHP:iptcembed()的用法_GD库图像处理函数(phpipam使用)

下一篇:PHP:jpeg2wbmp()的用法_GD库图像处理函数(php处理图片需要什么扩展)

免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

鄂ICP备2023003026号

网站地图: 企业信息 工商信息 财税知识 网络常识 编程技术

友情链接: 武汉网站建设 电脑维修 湖南楚通运网络