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)
786
Assert.Throws<ArgumentNullException>(() => { Icon.
ExtractIcon
(null!, 0, 16); });
793
Assert.Throws<IOException>(() => { Icon.
ExtractIcon
(string.Empty, 0, 16); });
804
Assert.Throws<ArgumentOutOfRangeException>(() => { Icon.
ExtractIcon
("Foo", 0, size); });
812
Icon.
ExtractIcon
(Path.GetRandomFileName() + ".ico", 0, 16);
825
Assert.Null(Icon.
ExtractIcon
(file.Path, 0, 16));
834
while ((icon = Icon.
ExtractIcon
("regedit.exe", count, 16)) is not null)
850
using Icon? icon = Icon.
ExtractIcon
("regedit.exe", -100, 256);
WinFormsControlsTest (1)
Buttons.cs (1)
117
Image = Icon.
ExtractIcon
("regedit.exe", 0, 256).ToBitmap()