127 references to new
System.Drawing.Common.Tests (115)
mono\System.Drawing.Imaging\BmpCodecTests.cs (11)
44using Bitmap bmp = new(sInFile); 65using Bitmap bmp = new(sInFile); 110using Bitmap bmp = new(sInFile); 131using Bitmap bmp = new(sInFile); 176using Bitmap bmp = new(sInFile); 197using Bitmap bmp = new(sInFile); 240using Bitmap bmp = new(sInFile); 363using Bitmap bmp = new(sInFile); 383using Bitmap bmp = new(sInFile); 443using Bitmap bmpLoad = new(sOutFile); 494using Bitmap bmp = new(sInFile);
mono\System.Drawing.Imaging\GifCodecTests.cs (5)
41using Bitmap bmp = new(filename); 72using Bitmap bmp = new(filename); 108using Bitmap bmp = new(sInFile); 167using Bitmap bmp = new(sInFile); 197using Bitmap bmpLoad = new(sOutFile);
mono\System.Drawing.Imaging\IconCodecTests.cs (22)
68using Bitmap bmp = new(sInFile); 99using Bitmap bmp = new(sInFile); 107using Bitmap bmp = new(sInFile); 131using Bitmap bmp = new(sInFile); 217using Bitmap bmp = new(sInFile); 247using Bitmap bmp = new(sInFile); 255using Bitmap bmp = new(sInFile); 327using Bitmap bmp = new(sInFile); 422using Bitmap bmp = new(sInFile); 452using Bitmap bmp = new(sInFile); 460using Bitmap bmp = new(sInFile); 545using Bitmap bmp = new(sInFile); 644using Bitmap bmp = new(sInFile); 674using Bitmap bmp = new(sInFile); 682using Bitmap bmp = new(sInFile); 749using Bitmap bmp = new(sInFile); 902using Bitmap bmp = new(sInFile); 932using Bitmap bmp = new(sInFile); 940using Bitmap bmp = new(sInFile); 1524using Bitmap bmp = new(sInFile); 1835using Bitmap bmp = new(sInFile); 1883using Bitmap bmpLoad = new(sOutFile);
mono\System.Drawing.Imaging\JpegCodecTests.cs (7)
43using Bitmap bmp = new(sInFile); 87using Bitmap bmp = new(sInFile); 111using Bitmap bmp = new(sInFile); 170using Bitmap bmp = new(sInFile); 202using Bitmap bmp = new(sInFile); 226using Bitmap bmp = new(sInFile); 362using Bitmap bmpLoad = new(sOutFile);
mono\System.Drawing.Imaging\PngCodecTests.cs (10)
43using Bitmap bmp = new(sInFile); 70using Bitmap bmp = new(sInFile); 144using Bitmap bmp = new(sInFile); 245using Bitmap bmp = new(sInFile); 272using Bitmap bmp = new(sInFile); 296using Bitmap bmp = new(sInFile); 353using Bitmap bmp = new(sInFile); 394using Bitmap bmp = new(sInFile); 469using Bitmap bmp = new(sInFile); 583using Bitmap bmpLoad = new(sOutFile);
mono\System.Drawing.Imaging\TiffCodecTests.cs (5)
43using Bitmap bmp = new(sInFile); 65using Bitmap bmp = new(sInFile); 74using Bitmap bmp = new(sInFile); 118using Bitmap bmp = new(sInFile); 254using Bitmap bmpLoad = new(sOutFile);
mono\System.Drawing\BitmapTests.cs (8)
320using Bitmap bmp = new(sInFile); 335using Bitmap bmp = new(sInFile); 346using Bitmap bmp = new(sInFile); 355public void FileDoesNotExists() => Assert.Throws<ArgumentException>(() => new Bitmap("FileDoesNotExists.jpg")); 444using Bitmap bmp = new(sInFile); 786using (Bitmap other = new(filename)) 1263using (Bitmap bitmap = new(sInFile)) 1289using (Bitmap bitmap = new(sInFile))
System\Drawing\BitmapTests.cs (7)
45using Bitmap bitmap = new(Helpers.GetTestBitmapPath(filename)); 69AssertExtensions.Throws<ArgumentNullException>("path", () => new Bitmap((string)null)); 79AssertExtensions.Throws<ArgumentException>(paramName, null, () => new Bitmap(filename)); 278yield return new object[] { new Bitmap(Helpers.GetTestBitmapPath("16x16_one_entry_4bit.ico")), 16, 16 }; 279yield return new object[] { new Bitmap(Helpers.GetTestBitmapPath("16x16_nonindexed_24bit.png")), 32, 48 }; 303using Bitmap image = new(Helpers.GetTestBitmapPath("16x16_one_entry_4bit.ico")); 908using Bitmap bitmap = new(Helpers.GetTestBitmapPath("16x16_one_entry_4bit.ico"));
System\Drawing\ImageAnimator.ManualTests.cs (1)
63bitmaps[imageName] = new Bitmap(Helpers.GetTestBitmapPath(imageName));
System\Drawing\ImageAnimatorTests.cs (20)
20using Bitmap image = new(Helpers.GetTestBitmapPath(imageName)); 27Bitmap image = new(Helpers.GetTestBitmapPath("1bit.png")); 34Bitmap animatedImage = new(Helpers.GetTestBitmapPath("animated-timer-100fps-repeat-2.gif")); 37Bitmap image = new(Helpers.GetTestBitmapPath("1bit.png")); 44Bitmap image = new(Helpers.GetTestBitmapPath("1bit.png")); 51Bitmap animatedImage = new(Helpers.GetTestBitmapPath("animated-timer-100fps-repeat-2.gif")); 54Bitmap image = new(Helpers.GetTestBitmapPath("1bit.png")); 61Bitmap image = new(Helpers.GetTestBitmapPath("1bit.png")); 68Bitmap animatedImage = new(Helpers.GetTestBitmapPath("animated-timer-100fps-repeat-2.gif")); 71Bitmap image = new(Helpers.GetTestBitmapPath("1bit.png")); 84using Bitmap image = new(Helpers.GetTestBitmapPath(imageName)); 91Bitmap image = new(Helpers.GetTestBitmapPath("animated-timer-100fps-repeat-2.gif")); 98Bitmap animatedImage = new(Helpers.GetTestBitmapPath("animated-timer-100fps-repeat-2.gif")); 101Bitmap image = new(Helpers.GetTestBitmapPath("animated-timer-100fps-repeat-infinite.gif")); 108Bitmap animatedImage = new(Helpers.GetTestBitmapPath("animated-timer-100fps-repeat-2.gif")); 115Bitmap animatedImage = new(Helpers.GetTestBitmapPath("animated-timer-100fps-repeat-2.gif")); 123Bitmap animatedImage = new(Helpers.GetTestBitmapPath("animated-timer-100fps-repeat-2.gif")); 131Bitmap image = new(Helpers.GetTestBitmapPath("animated-timer-100fps-repeat-2.gif")); 138Bitmap animatedImage = new(Helpers.GetTestBitmapPath("animated-timer-100fps-repeat-2.gif")); 141Bitmap image = new(Helpers.GetTestBitmapPath("animated-timer-100fps-repeat-infinite.gif"));
System\Drawing\ImageTests.cs (14)
23using Bitmap bitmap = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 39using Bitmap bitmap = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 81using Bitmap bitmap = new(Helpers.GetTestBitmapPath("almogaver1bit.bmp")); 97using Bitmap bitmap = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 121using Bitmap bitmap = new(Helpers.GetTestBitmapPath("almogaver1bit.bmp")); 128using Bitmap source = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 156using Bitmap bitmap = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 189using Bitmap bitmap = new(Helpers.GetTestBitmapPath("almogaver1bit.bmp")); 199using Bitmap source = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 217using Bitmap bitmap = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 227using Bitmap source = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 286using Bitmap bitmap = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 428using Bitmap source = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 429using Bitmap bitmap = new(Helpers.GetTestBitmapPath("almogaver1bit.bmp"));
System\Drawing\Imaging\PropertyItemTests.cs (5)
16using Bitmap bitmap = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 28using Bitmap bitmap = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 40using Bitmap bitmap = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 57using Bitmap bitmap = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 74using Bitmap image = new(Helpers.GetTestBitmapPath("16x16_nonindexed_24bit.png"));
System.Windows.Forms.Tests (1)
System\Windows\Forms\ImageList.ImageCollectionTests.cs (1)
251yield return new object[] { transparentColor, new Bitmap("bitmaps/10x16_one_entry_32bit.ico") };
System.Windows.Forms.UI.IntegrationTests (3)
DragDropTests.cs (3)
21private readonly Bitmap _dragImage = new("./Resources/move.bmp"); 890private readonly Bitmap _dragImage = new("./Resources/image.png"); 891private readonly Bitmap _dragAcceptBmp = new("./Resources/DragAccept.bmp");
WinFormsControlsTest (8)
DragDrop.cs (8)
17private readonly Bitmap _dragAcceptBmp = new(@"Data\DragDrop\DragAccept.bmp"); 18private readonly Bitmap _nyanCatAscii301Bmp = new(@"Data\DragDrop\NyanCatAscii_301.bmp"); 19private readonly Bitmap _nyanCatBmp = new(@"Data\DragDrop\NyanCat1.bmp"); 20private readonly Bitmap _toolStripAsciiCatBmp = new(@"Data\DragDrop\ToolStripAsciiCat.bmp"); 21private readonly Bitmap _toolStripDragAcceptBmp = new(@"Data\DragDrop\ToolStripDragAccept.bmp"); 22private readonly Bitmap _toolStripNyanCatBmp = new(@"Data\DragDrop\ToolStripNyanCat.bmp"); 366LoadCat(pictureBox, new Bitmap(bitmapFiles[0])); 374LoadCat(_pictureBoxList[i], new Bitmap(bitmapFiles[0]));