fromFile() публичный статический Метод

Get the GD image object from an image file
public static fromFile ( contao\File $file ) : static
$file contao\File The file object
Результат static The GD image object
Пример #1
0
 /**
  * Tests the fromFile() method with an invalid type.
  *
  * @expectedException \InvalidArgumentException
  */
 public function testFromFileInvalidType()
 {
     GdImage::fromFile(new \File('test.xyz'));
 }