函数名:imagewbmp()
适用版本:PHP 4, PHP 5, PHP 7
函数说明:imagewbmp() 函数用于将图像以 WBMP 格式输出或保存到文件中。
语法:bool imagewbmp ( resource $image [, string $filename [, int $foreground ]] )
参数:
返回值:
示例一:将图像输出到浏览器
$image = imagecreatefromwbmp('image.wbmp');
header('Content-Type: image/vnd.wap.wbmp');
imagewbmp($image);
imagedestroy($image);
示例二:将图像保存到文件
$image = imagecreatefromwbmp('image.wbmp');
imagewbmp($image, 'output.wbmp');
imagedestroy($image);
注意事项: