(PHP 4 >= 4.0.5, PHP 5, PHP 7)
image2wbmp — �� WBMP ��ʽ��ͼ���������������ļ�
$image
[, string $filename
[, int $threshold
]] ) : int
image2wbmp() ��
image ͼ��һ����Ϊ filename ��
WBMP ���image
������ij��ͼ�������ķ���ֵ������ 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()��