首页 > php框架 > php mage2wbmp 函数

php mage2wbmp 函数

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);
?>


教程地址:http://www.phprm.com/frame/php1004962.html

欢迎转载!但请带上文章地址^^

标签:none

发表留言