龙盟编程博客 | 无障碍搜索 | 云盘搜索神器
快速搜索
主页 > web编程 > php编程 >

php mage2wbmp 函数

时间:2012-12-24 21:59来源:未知 作者:admin 点击:
分享到:
image2wbmp (PHP 4中= 4.0.5,PHP 5中) image2wbmp - 输出图像浏览器或文件 报告错误描述 布尔image2wbmp($oimg[,$filename[,soruce]]) image2wbmp()输出或保存一个给定的图像WBMP版本。 报告错误参数

image2wbmp
(PHP 4中“= 4.0.5,PHP 5中)

image2wbmp - 输出图像浏览器或文件

报告错误描述
布尔image2wbmp($oimg[,$filename[,soruce]])
image2wbmp()输出或保存一个给定的图像WBMP版本。

报告错误参数

图片
图像资源,通过创造的图像功能,如,一返回imagecreatetruecolor()。

文件名
路径保存的文件。如果没有给出原始图像流将被直接输出。

开始
阈值介于0和255(含)。


报告错误返回值
返回TRUE,成功或失败则返回FALSE。

报告错误的例子

<?php
$file = 'php.png';
$image = imagecreatefrompng($file);

header('Content-type: ' . image_type_to_mime_type(IMAGETYPE_WBMP));
image2wbmp($image); // output the stream directly
imagedestroy($image);
?>


精彩图集

赞助商链接