(PHP 4 >= 4.0.5, PHP 5, PHP 7)
png2wbmp — 锟斤拷 PNG 图锟斤拷锟侥硷拷转锟斤拷为 WBMP 图锟斤拷锟侥硷拷
$pngname
, string $wbmpname
, int $dest_height
, int $dest_width
, int $threshold
) : bool
锟斤拷锟斤拷为 pngname
锟斤拷 PNG 锟侥硷拷转锟斤拷为
WBMP 锟斤拷式锟斤拷锟斤拷锟斤拷为 wbmpname
锟斤拷锟斤拷
d_height
锟斤拷 d_width
指锟斤拷目锟斤拷图锟斤拷母叨群涂锟饺★拷
pngname
PNG 锟侥硷拷锟斤拷路锟斤拷锟斤拷
wbmpname
目锟斤拷 WBMP 锟侥硷拷锟斤拷路锟斤拷锟斤拷
dest_height
目锟斤拷图锟斤拷母叨取锟�
dest_width
目锟斤拷图锟斤拷目锟饺★拷
threshold
锟斤拷值锟斤拷锟斤拷 0 锟斤拷 8 之锟戒(锟斤拷锟斤拷锟斤拷
锟缴癸拷时锟斤拷锟斤拷 TRUE
锟斤拷 锟斤拷锟斤拷锟斤拷失锟斤拷时锟斤拷锟斤拷 FALSE
锟斤拷
Example #1 png2wbmp() 锟斤拷锟斤拷
<?php
// Path to the target png
$path = './test.png';
// Get the image sizes
$image = getimagesize($path);
// Convert image
png2wbmp($path, './test.wbmp', $image[1], $image[0], 7);
?>
Note: WBMP 支锟街斤拷锟斤拷 PHP 锟斤拷 GD-1.8 锟斤拷锟斤拷甙姹疽伙拷锟斤拷锟斤拷时锟斤拷锟矫★拷