setFormats() 공개 메소드

Set the current object formats to include the supported formats of Imagick.
public setFormats ( ) : Imagick
리턴 Imagick
예제 #1
0
 public function testSetAndGetFormats()
 {
     $i = new Imagick(__DIR__ . '/../tmp/test.gif');
     $i->setFormats(array('gif' => 'image/gif'));
     $formats = $i->getFormats();
     $this->greaterThan(0, $i->getNumberOfFormats());
     $this->greaterThan(0, count($formats));
     $this->assertTrue(is_array($formats));
 }