setFormats() public méthode

Set the current object formats to include the supported formats of Imagick.
public setFormats ( ) : Imagick
Résultat Imagick
Exemple #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));
 }