image2wbmp

(PHP 4 >= 4.0.5, PHP 5, PHP 7)

image2wbmp锟斤拷 WBMP 锟斤拷式锟斤拷图锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟侥硷拷

说锟斤拷

image2wbmp ( resource $image [, string $filename [, int $threshold ]] ) : int

image2wbmp() 锟斤拷 image 图锟今创斤拷一锟斤拷锟斤拷为 filename 锟斤拷 WBMP 锟侥硷拷锟斤拷image 锟斤拷锟斤拷锟斤拷某锟斤拷图锟今创斤拷锟斤拷锟斤拷锟侥凤拷锟斤拷值锟斤拷锟斤拷锟斤拷 imagecreatetruecolor()锟斤拷

filename 锟斤拷锟斤拷锟角匡拷选锟筋,锟斤拷锟绞★拷裕锟斤拷锟街憋拷咏锟皆硷拷锟斤拷锟斤拷锟斤拷锟斤拷通锟斤拷锟斤拷 header() 锟斤拷锟斤拷 image/vnd.wap.wbmp 锟斤拷 Content-type锟斤拷锟斤拷锟皆达拷锟斤拷直锟斤拷锟斤拷锟� WBMP 图锟斤拷锟� PHP 锟脚憋拷锟斤拷

Example #1 image2wbmp() 锟斤拷锟斤拷

<?php
$file 
'php.jpg';
$image imagecreatefrompng($file);
header('Content-type: ' image_type_to_mime(IMAGETYPE_WBMP));
image2wbmp($file); // output the stream directly
?>

Note:

WBMP 支锟街斤拷锟斤拷 PHP 锟斤拷锟斤拷时锟斤拷锟斤拷锟斤拷 GD-1.8 锟斤拷锟斤拷甙姹臼憋拷锟斤拷谩锟�

锟轿硷拷 imagewbmp()锟斤拷