7 references to FromFile
System.Drawing.Common (1)
System\Drawing\Image.cs (1)
84
public static Image FromFile(string filename) =>
FromFile
(filename, false);
System.Drawing.Common.Tests (6)
System\Drawing\ImageTests.cs (6)
500
Assert.Throws<OutOfMemoryException>(() => Image.
FromFile
(file.Path, useEmbeddedColorManagement: true));
507
AssertExtensions.Throws<ArgumentNullException>("path", () => Image.
FromFile
(null, useEmbeddedColorManagement: true));
514
AssertExtensions.Throws<ArgumentException>("path", null, () => Image.
FromFile
(string.Empty, useEmbeddedColorManagement: true));
526
Assert.Throws<PathTooLongException>(() => Image.
FromFile
(fileName,
534
Assert.Throws<FileNotFoundException>(() => Image.
FromFile
(fileName,
543
Assert.Throws<FileNotFoundException>(() => Image.
FromFile
("NoSuchFile", useEmbeddedColorManagement: true));