လက်ရှိတည်နေရာ: ပင်မစာမျက်နှာ> ဖန်ရှင်အမျိုးအစားများ> jpeg2wbmp

jpeg2wbmp

JPEG image file ကို WBMP image file သို့ပြောင်းပါ
အမည်:jpeg2wbmp
အမျိုးအစား:Image processing gd
programming language:php
တစ်ကြောင်းဖြင့်အကျဉ်းချုပ်:JPEG ပုံရိပ်ကို WBMP ပုံသို့ပြောင်းပါ

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 ကိုပြန်သွားပါ

  • WBMP ပုံကိုအောင်မြင်စွာပြောင်းလဲပြီးသိမ်းဆည်းထားလျှင် Rext Reward ။
  • အမှားတစ်ခုဖြစ်ပေါ်ပါကမှားယွင်းစွာပြန်လာသည်။

ဥပမာ -

 $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 သို့ပြောင်းရန်ပျက်ကွက်ခဲ့သည်။ "

သက်ဆိုင်သောဖင်ခှ်ရှင်းများ
  • Interpolation နည်းလမ်းကိုသတ်မှတ်ပါ imagesetinterpolation

    imagesetinterpolation

    Interpolationနည်းလမ်
  • ဖြည့်ရန်မြေပုံကိုသတ်မှတ်ပါ imagesettile

    imagesettile

    ဖြည့်ရန်မြေပုံကိုသတ်
  • anti-aliasing ကိုအသုံးပြုသင့်ပါတယ် imageantialias

    imageantialias

    anti-aliasingကိုအသုံ
  • browser သို့မဟုတ် file မှ output ကို output ကိုပုံရိပ်တွေ imagexbm

    imagexbm

    browserသို့မဟုတ်file
  • ပေးထားသောအကျယ်နှင့်အမြင့်နှင့်အတူပုံရိပ်ကိုချုံ့ချဲ့ imagescale

    imagescale

    ပေးထားသောအကျယ်နှင့်အ
  • polygons ဖြည့်ပါ imagefilledpolygon

    imagefilledpolygon

    polygonsဖြည့်ပါ
  • လိုင်းပုံဆွဲ၏စတိုင်ကိုသတ်မှတ် imagesetstyle

    imagesetstyle

    လိုင်းပုံဆွဲ၏စတိုင်က
  • စစ်မှန်သောအရောင်ပုံရိပ်များကို palette ပုံရိပ်များကိုပြောင်းပါ imagetruecolortopalette

    imagetruecolortopalette

    စစ်မှန်သောအရောင်ပုံရ
လူကြိုက်များသော ဆောင်းပါးများ