colorTotal() public method

Return the number of colors in the palette of indexed images.
public colorTotal ( ) : integer
return integer
Example #1
0
 public function testColorTotal()
 {
     $i = new Imagick(__DIR__ . '/../tmp/test.gif');
     $this->assertEquals(16, $i->colorTotal());
 }