當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Image::brightness方法代碼示例

本文整理匯總了PHP中Intervention\Image\Image::brightness方法的典型用法代碼示例。如果您正苦於以下問題:PHP Image::brightness方法的具體用法?PHP Image::brightness怎麽用?PHP Image::brightness使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Intervention\Image\Image的用法示例。


在下文中一共展示了Image::brightness方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: runSepiaFilter

 /**
  * Perform sepia manipulation.
  * @param  Image $image The source image.
  * @return Image The manipulated image.
  */
 public function runSepiaFilter(Image $image)
 {
     $image->greyscale();
     $image->brightness(-10);
     $image->contrast(10);
     $image->colorize(38, 27, 12);
     $image->brightness(-10);
     $image->contrast(10);
     return $image;
 }
開發者ID:whismat,項目名稱:glide,代碼行數:15,代碼來源:Filter.php

示例2: run

 public function run(Image $image)
 {
     $brightness = $this->getBrightness();
     if ($brightness !== null) {
         $image->brightness($brightness);
     }
     return $image;
 }
開發者ID:placers,項目名稱:imgproxy,代碼行數:8,代碼來源:Brightness.php

示例3: run

 /**
  * Perform brightness image manipulation.
  * @param  Request $request The request object.
  * @param  Image   $image   The source image.
  * @return Image   The manipulated image.
  */
 public function run(Request $request, Image $image)
 {
     $brightness = $this->getBrightness($request->get('bri'));
     if ($brightness) {
         $image->brightness($brightness);
     }
     return $image;
 }
開發者ID:awebc,項目名稱:web_xbf,代碼行數:14,代碼來源:Brightness.php

示例4: adjustment

 protected function adjustment()
 {
     if ($this->gamma) {
         $this->image->gamma($this->gamma);
     }
     if ($this->contrast) {
         $this->image->contrast($this->contrast);
     }
     if ($this->brightness) {
         $this->image->brightness($this->brightness);
     }
     if ($this->sharpen) {
         $this->image->sharpen($this->sharpen);
     }
 }
開發者ID:Monori,項目名稱:imgback,代碼行數:15,代碼來源:ImageHandler.php

示例5: handle

 /**
  * Handle the image manipulation request
  * @param  \Intervention\Image\Image $image
  * @param  array                     $options
  * @return \Intervention\Image\Image
  */
 public function handle($image, $options)
 {
     $options = array_merge($this->defaults, $options);
     return $image->brightness($options['level']);
 }
開發者ID:Houbsi,項目名稱:Media,代碼行數:11,代碼來源:Brightness.php

示例6: applyFilter

 public function applyFilter(Image $image)
 {
     return $image->brightness($this->level);
 }
開發者ID:DraperStudio,項目名稱:Laravel-Picible,代碼行數:4,代碼來源:Brighten.php

示例7: brightness

 /**
  * Changes the brightness of the current image
  *
  * @param int $level [description]
  * @return \Intervention\Image\Image 
  * @static 
  */
 public static function brightness($level)
 {
     return \Intervention\Image\Image::brightness($level);
 }
開發者ID:jorzhikgit,項目名稱:MLM-Nexus,代碼行數:11,代碼來源:_ide_helper.php


注:本文中的Intervention\Image\Image::brightness方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。