当前位置: 首页>>代码示例>>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;未经允许,请勿转载。