5 references to new
System.Drawing.Common (1)
System\Drawing\Bitmap.cs (1)
28public Bitmap(string filename) : this(filename, useIcm: false) { }
System.Drawing.Common.Tests (4)
System\Drawing\BitmapTests.cs (4)
58using Bitmap bitmap = new(Helpers.GetTestBitmapPath(filename), useIcm); 70AssertExtensions.Throws<ArgumentNullException>("path", () => new Bitmap((string)null, false)); 80AssertExtensions.Throws<ArgumentException>(paramName, null, () => new Bitmap(filename, false)); 81AssertExtensions.Throws<ArgumentException>(paramName, null, () => new Bitmap(filename, true));