jpeg2wbmp
JPEG image file ကို WBMP image file သို့ပြောင်းပါ
function name: Jpeg2WBMP ()
သက်ဆိုင်သောဗားရှင်း - PHP 4> = = 4.0.5, PHP 5, PHP 7
Function ဖော်ပြချက် - JPEG ပုံရိပ်ကို WBMP ပုံသို့ပြောင်းပါ
အသုံးပြုမှု:
bool jpeg2wbmp(string $jpegname, string $wbmpname, int $dest_height, int $dest_width, int $threshold)
Parametermer
$jpegname
: JPEG image file ၏လမ်းကြောင်းနှင့်ဖိုင်အမည်။$wbmpname
: ပြောင်းလဲထားသော WBMP image file ၏လမ်းကြောင်းနှင့်ဖိုင်အမည်။$dest_height
: ပြောင်းလဲ WBMP ပုံရိပ်၏အမြင့်။$dest_width
: ပြောင်းလဲထားသော WBMP ပုံရိပ်၏ width ။$threshold
: optional parameter သည် binarized ပုံများအတွက်အသုံးပြုသောတံခါးခုံကိုညွှန်ပြသည်။ ပုံမှန်တန်ဖိုး 80 ဖြစ်ပါတယ်။Value ကိုပြန်သွားပါ
ဥပမာ -
$jpegname = 'path/to/image.jpg'; $wbmpname = 'path/to/image.wbmp'; $dest_height = 200; $dest_width = 200; $threshold = 80; if (jpeg2wbmp($jpegname, $wbmpname, $dest_height, $dest_width, $threshold)) { echo 'JPEG image converted to WBMP successfully.'; } else { echo 'Failed to convert JPEG image to WBMP.'; }
အထက်ပါဥပမာသည်သတ်မှတ်ထားသော JPEG ပုံရိပ်ကို 200x200 pixels ၏ wbmp image သို့ပြောင်းသည်။ ပြောင်းလဲခြင်းသည်အောင်မြင်စွာအောင်မြင်စွာအောင်မြင်စွာပြောင်းလဲခြင်း, ဒီလိုမှမဟုတ်ရင် output ကို "JPEG ပုံရိပ်ကို WBMP သို့ပြောင်းရန်ပျက်ကွက်ခဲ့သည်။ "