brightness() public method

Method to adjust the brightness of the image.
public brightness ( integer $b ) : Gd
$b integer
return Gd
Esempio n. 1
0
 public function testFilters()
 {
     $i = new Gd(__DIR__ . '/../tmp/test.jpg');
     $i->brightness(50)->contrast(50)->desaturate()->sharpen(10)->blur(10)->border(5, 5)->border(5, 5, Gd::OUTER_BORDER)->overlay(__DIR__ . '/../tmp/test.png')->colorize(new Rgb(255, 0, 0))->invert()->pixelate(10)->pencil();
     $this->assertEquals(640, $i->getWidth());
 }