9 references to ExtractIcon
System.Drawing.Common (1)
System\Drawing\Icon.cs (1)
861/// <inheritdoc cref="ExtractIcon(string, int, int)" />
System.Drawing.Common.Tests (7)
System\Drawing\IconTests.cs (7)
786Assert.Throws<ArgumentNullException>(() => { Icon.ExtractIcon(null!, 0, 16); }); 793Assert.Throws<IOException>(() => { Icon.ExtractIcon(string.Empty, 0, 16); }); 804Assert.Throws<ArgumentOutOfRangeException>(() => { Icon.ExtractIcon("Foo", 0, size); }); 812Icon.ExtractIcon(Path.GetRandomFileName() + ".ico", 0, 16); 825Assert.Null(Icon.ExtractIcon(file.Path, 0, 16)); 834while ((icon = Icon.ExtractIcon("regedit.exe", count, 16)) is not null) 850using Icon? icon = Icon.ExtractIcon("regedit.exe", -100, 256);
WinFormsControlsTest (1)
Buttons.cs (1)
117Image = Icon.ExtractIcon("regedit.exe", 0, 256).ToBitmap()