level() 공개 메소드

This method doesn't do anything
public level ( integer $black, float $gamma, integer $white ) : Gd
$black integer
$gamma float
$white integer
리턴 Gd
예제 #1
0
 public function testDummyMethods()
 {
     $i = new Gd(__DIR__ . '/../tmp/test.jpg');
     $i->flip();
     $i->flop();
     $this->assertInstanceOf('Pop\\Image\\Gd', $i->setFilter());
     $this->assertInstanceOf('Pop\\Image\\Gd', $i->setBlur());
     $this->assertInstanceOf('Pop\\Image\\Gd', $i->setOverlay());
     $this->assertInstanceOf('Pop\\Image\\Gd', $i->hue(100));
     $this->assertInstanceOf('Pop\\Image\\Gd', $i->saturation(100));
     $this->assertInstanceOf('Pop\\Image\\Gd', $i->hsb(100, 100, 1000));
     $this->assertInstanceOf('Pop\\Image\\Gd', $i->level(0, 0, 0));
     $this->assertInstanceOf('Pop\\Image\\Gd', $i->flatten());
     $this->assertInstanceOf('Pop\\Image\\Gd', $i->paint(10));
     $this->assertInstanceOf('Pop\\Image\\Gd', $i->posterize(10));
     $this->assertInstanceOf('Pop\\Image\\Gd', $i->noise());
     $this->assertInstanceOf('Pop\\Image\\Gd', $i->diffuse(10));
     $this->assertInstanceOf('Pop\\Image\\Gd', $i->skew(new Rgb(255, 0, 0), 10, 10));
     $this->assertInstanceOf('Pop\\Image\\Gd', $i->swirl(10));
     $this->assertInstanceOf('Pop\\Image\\Gd', $i->wave(10, 10));
     $this->assertInstanceOf('Pop\\Image\\Gd', $i->setFormats());
 }