လက်ရှိတည်နေရာ: ပင်မစာမျက်နှာ> ဖန်ရှင်အမျိုးအစားများ> 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 သို့ပြောင်းရန်ပျက်ကွက်ခဲ့သည်။ "

သက်ဆိုင်သောဖင်ခှ်ရှင်းများ
  • ဖိုင်တစ်ခုသို့မဟုတ် URL မှရုပ်ပုံအသစ်ကိုဖန်တီးပါ imagecreatefromxpm

    imagecreatefromxpm

    ဖိုင်တစ်ခုသို့မဟုတ်U
  • ပုံများကိုအရောင်များကိုသတ်မှတ်ပါ imagecolorallocatealpha

    imagecolorallocatealpha

    ပုံများကိုအရောင်များ
  • အသွင်ပြောင်းထားသော SRC ပုံရိပ်ပါ 0 င်သည့်ပုံတစ်ပုံကိုပြန်ပို့ရန် optional clipping area ရိယာကိုသုံးပါ imageaffine

    imageaffine

    အသွင်ပြောင်းထားသောSR
  • Palette-based ပုံရိပ်များကိုစစ်မှန်တဲ့အရောင်များသို့ပြောင်းပါ imagepalettetotruecolor

    imagepalettetotruecolor

    Palette-basedပုံရိပ်
  • ဒေါင်လိုက်ကြိုးဆွဲပါ imagestringup

    imagestringup

    ဒေါင်လိုက်ကြိုးဆွဲပါ
  • GD2 ဖိုင် (သို့) URL မှရုပ်ပုံအသစ်ကိုဖန်တီးပါ imagecreatefromgd2

    imagecreatefromgd2

    GD2ဖိုင်(သို့)URLမှရ
  • ဖိုင်တစ်ခုသို့မဟုတ် URL မှရုပ်ပုံအသစ်ကိုဖန်တီးပါ imagecreatefrombmp

    imagecreatefrombmp

    ဖိုင်တစ်ခုသို့မဟုတ်U
  • browser (သို့) ဖိုင်မှ output gd2 ပုံများ imagegd2

    imagegd2

    browser(သို့)ဖိုင်မှ
လူကြိုက်များသော ဆောင်းပါးများ