8 references to new
System.Drawing.Common (2)
System\Drawing\Icon.cs (2)
55public Icon(string fileName) : this(fileName, 0, 0) 59public Icon(string fileName, Size size) : this(fileName, size.Width, size.Height)
System.Drawing.Common.Tests (6)
System\Drawing\IconTests.cs (6)
70using Icon icon = new(Helpers.GetTestBitmapPath(fileName), size.Width, size.Height); 91AssertExtensions.Throws<ArgumentNullException>("path", () => new Icon((string)null, 32, 32)); 337using Icon icon = new(Helpers.GetTestBitmapPath("48x48_multiple_entries_32bit.ico"), size, size); 512yield return new object[] { new Icon(Helpers.GetTestBitmapPath("256x256_two_entries_multiple_bits.ico"), 48, 48) }; 513yield return new object[] { new Icon(Helpers.GetTestBitmapPath("256x256_two_entries_multiple_bits.ico"), 256, 256) }; 514yield return new object[] { new Icon(Helpers.GetTestBitmapPath("256x256_two_entries_multiple_bits.ico"), 0, 0) };