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