小白教程
所有教程
关于
Search
172.70.100.61
172.70.100.61
参数设置
贡献
退出
操作
编辑
移动
保护
信息
历史
删除
查看“Php image2wbmp”的源代码
本页内容
上一节:
Php_image_type_to_extension
下一节:
Php_imageaffine
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{DISPLAYTITLE:image2wbmp()}}[[Category:PHP GD 图形处理函数参考手册|6]] = PHP image2wbmp - 输出WBMP图片 = [[:Category:PHP GD 图形处理函数参考手册]] image2wbmp — 以 WBMP 格式将图像输出到浏览器或文件。 === 语法 === <sample title="" desc="" lang="php" hererun="1"> int image2wbmp ( resource $image [, string $filename [, int $threshold ]] ) </sample> image2wbmp() 从 image 图像创建一个名为 filename 的 WBMP 文件。image 参数是某个创建图像函数的返回值,例如 imagecreatetruecolor()。 filename 参数是可选项,如果省略,则直接将原图像流输出。 == <sample title="" desc="" lang="php" hererun="1"> <?php $file = 'php.jpg'; $image = imagecreatefrompng($file); header('Content-type: ' . image_type_to_mime(IMAGETYPE_WBMP)); image2wbmp($file); // 直接将原图像流输出 ?> </sample> [[:Category:PHP GD 图形处理函数参考手册]]
返回至“
Php image2wbmp
”。
上一节:
Php_image_type_to_extension
下一节:
Php_imageaffine