getColors() 공개 메소드

Return all of the colors in the palette in an array format
public getColors ( integer | string $format = Pop\Image\Gd::HEX ) : array
$format integer | string
리턴 array
예제 #1
0
 public function testGetColors()
 {
     $i = new Gd(__DIR__ . '/../tmp/test.gif');
     $hex = $i->getColors();
     $rgb = $i->getColors(false);
     $this->assertEquals(16, count($hex));
     $this->assertEquals(16, count($rgb));
     $this->assertTrue(in_array('113405', $hex));
     $this->assertTrue(in_array('17,52,5', $rgb));
 }