GD و Image Functions
PHP Manual

png2wbmp

(PHP 4 >= 4.0.5, PHP 5)

png2wbmpتبدیل فایل تصویر PNG به فایل تصویر WBMP

Description

bool png2wbmp ( string $pngname , string $wbmpname , int $dest_height , int $dest_width , int $threshold )

تبدیل فایل PNG به فایل WBMP.

Parameters

pngname

مسیر فایل PNG.

wbmpname

مسیر فایل مقصد WBMP.

dest_height

ارتفاع تصویر مقصد.

dest_width

عرض تصویر مقصد.

threshold

مقدار آستانه بین 0 و 8 (مشمول).

Return Values

Returns TRUE on success or FALSE on failure.

Examples

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);
?>

Notes

Note: WBMP support is only available if PHP was compiled against GD-1.8 or later.

See Also


GD و Image Functions
PHP Manual