(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
ָ��Ŀ��ͼ��ĸ߶ȺͿ�ȡ�
pngnamePNG �ļ���·����
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 ����߰汾һ�����ʱ���á�