2136 instantiations of Bitmap
Microsoft.VisualBasic.Tests (1)
Microsoft\VisualBasic\MyServices\ClipboardProxyTests.cs (1)
72using Bitmap image = new(2, 2);
PresentationCore.Tests (1)
BinaryFormat\DataObjectTests.cs (1)
53new System.Drawing.Bitmap(1, 1), // Use Bitmap instead of Image
PresentationFramework-SystemDrawing (4)
SystemDrawingExtension.cs (4)
104Bitmap bmp = new Bitmap(bitmapwidth, bitmapheight); 116Bitmap img = new Bitmap(stream); 146return new Bitmap(bitmapStream); 163Bitmap bitmapFinal = new Bitmap(
System.Drawing.Common.Tests (888)
mono\System.Drawing.Imaging\BmpCodecTests.cs (12)
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); 429Bitmap bmp = new(100, 100, original); 443using Bitmap bmpLoad = new(sOutFile); 494using Bitmap bmp = new(sInFile);
mono\System.Drawing.Imaging\GifCodecTests.cs (6)
41using Bitmap bmp = new(filename); 72using Bitmap bmp = new(filename); 108using Bitmap bmp = new(sInFile); 167using Bitmap bmp = new(sInFile); 183Bitmap bmp = new(100, 100, original); 197using Bitmap bmpLoad = new(sOutFile);
mono\System.Drawing.Imaging\IconCodecTests.cs (24)
48using Bitmap bmp = new(image); 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); 1867Bitmap bmp = new(100, 100, original); 1883using Bitmap bmpLoad = new(sOutFile);
mono\System.Drawing.Imaging\JpegCodecTests.cs (8)
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); 348Bitmap bmp = new(100, 100, original); 362using Bitmap bmpLoad = new(sOutFile);
mono\System.Drawing.Imaging\PngCodecTests.cs (11)
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); 569Bitmap bmp = new(100, 100, original); 583using Bitmap bmpLoad = new(sOutFile);
mono\System.Drawing.Imaging\TiffCodecTests.cs (6)
43using Bitmap bmp = new(sInFile); 65using Bitmap bmp = new(sInFile); 74using Bitmap bmp = new(sInFile); 118using Bitmap bmp = new(sInFile); 240Bitmap bmp = new(100, 100, original); 254using Bitmap bmpLoad = new(sOutFile);
mono\System.Drawing\BitmapTests.cs (27)
48Bitmap bmp = new(100, 100, PixelFormat.Format32bppRgb); 62using Bitmap bmp = new(100, 100, PixelFormat.Format8bppIndexed); 71using Bitmap bmp = new(100, 100, PixelFormat.Format32bppRgb); 89using Bitmap bmp = new(10, 10, PixelFormat.Format24bppRgb); 109using Bitmap bmp = new(10, 10, PixelFormat.Format24bppRgb); 125using Bitmap bmp = new(1, 1, PixelFormat.Format1bppIndexed); 134using Bitmap bmp = new(1, 1, PixelFormat.Format4bppIndexed); 143using Bitmap bmp = new(1, 1, PixelFormat.Format8bppIndexed); 153using Bitmap bmp = new(2, 1, format); 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); 456Bitmap bmp = new(width, height, fmt); 674using (Bitmap bmp = new(1, 1, PixelFormat.Format32bppRgb)) 729using (Bitmap bmp = new(1, 1, PixelFormat.Format32bppArgb)) 773using Bitmap bmp = new(20, 20); 781using (Bitmap bmp = new(20, 20)) 786using (Bitmap other = new(filename)) 797Bitmap bmp = new(184, 184, PixelFormat.Format1bppIndexed); 819using Bitmap bmp = new(1, 1, PixelFormat.Format1bppIndexed); 853using Bitmap bmp = new(1, 1, PixelFormat.Format4bppIndexed); 1127using Bitmap bmp = new(1, 1, PixelFormat.Format8bppIndexed); 1143using Bitmap bmp = new(1, 1); 1263using (Bitmap bitmap = new(sInFile)) 1289using (Bitmap bitmap = new(sInFile))
mono\System.Drawing\GraphicsTests.cs (130)
103using Bitmap bmp = new(200, 200); 121using Bitmap bmp = new(200, 200); 150using Bitmap bmp = new(200, 200); 165using Bitmap bmp = new(200, 200); 176using Bitmap bmp = new(200, 200); 203using Bitmap bmp = new(200, 200); 220using Bitmap bmp = new(200, 200); 239using Bitmap bmp = new(200, 200); 280using Bitmap bmp = new(200, 200); 359_bitmap = new Bitmap(width, height); 713using Bitmap bitmap = new(20, 20); 727using Bitmap bitmap = new(20, 20); 737using Bitmap bitmap = new(20, 20); 747using Bitmap bitmap = new(20, 20); 759using Bitmap bitmap = new(20, 20); 771using Bitmap bitmap = new(20, 20); 779using Bitmap bitmap = new(20, 20); 787using Bitmap bitmap = new(20, 20); 798using Bitmap bitmap = new(20, 20); 809using Bitmap bitmap = new(20, 20); 820using Bitmap bitmap = new(20, 20); 832using Bitmap bitmap = new(20, 20); 847using Bitmap bitmap = new(20, 20); 869using Bitmap bitmap = new(20, 20); 884using Bitmap bitmap = new(20, 20); 950using Bitmap bitmap = new(20, 20); 983using Bitmap bitmap = new(20, 20); 1017using Bitmap bitmap = new(20, 20); 1049using Bitmap bitmap = new(20, 20); 1085using Bitmap bitmap = new(20, 20); 1093using Bitmap bitmap = new(20, 20); 1133using Bitmap bitmap = new(20, 20); 1141using Bitmap bitmap = new(20, 20); 1149using Bitmap bitmap = new(20, 20); 1157using Bitmap bitmap = new(20, 20); 1165using Bitmap bitmap = new(20, 20); 1173using Bitmap bitmap = new(20, 20); 1181using Bitmap bitmap = new(20, 20); 1189using Bitmap bitmap = new(20, 20); 1210Bitmap bitmap = new(20, 20); 1374Bitmap bitmap = new(20, 20); 1520Bitmap bitmap = new(20, 20); 1573using Bitmap bitmap = new(20, 20); 1594using Bitmap bitmap = new(20, 20); 1603using Bitmap bitmap = new(20, 20); 1620using Bitmap bitmap = new(20, 20); 1653using Bitmap bitmap = new(20, 20); 1684using Bitmap bitmap = new(20, 20); 1717using Bitmap bitmap = new(20, 20); 1748using Bitmap bitmap = new(20, 20); 1779using Bitmap bitmap = new(20, 20); 1802using Bitmap bitmap = new(20, 20); 1846using Bitmap bitmap = new(20, 20); 1869using Bitmap bitmap = new(20, 20); 1882using Bitmap bitmap = new(20, 20); 1895using Bitmap bitmap = new(20, 20); 1918using Bitmap bitmap = new(20, 20); 1962using Bitmap bitmap = new(20, 20); 1998using Bitmap bitmap = new(20, 20); 2022using Graphics gfx = Graphics.FromImage(new Bitmap(1, 1)); 2056using Graphics gfx = Graphics.FromImage(new Bitmap(1, 1)); 2083using Bitmap bitmap = new(20, 20); 2100using Bitmap bitmap = new(20, 20); 2117using Bitmap bitmap = new(20, 20); 2133using Bitmap b = new(10, 10); 2145using Bitmap b = new(10, 10); 2153using Bitmap b = new(10, 10); 2163using Bitmap b = new(10, 10); 2175using Bitmap b = new(10, 10); 2183using Bitmap b = new(10, 10); 2200using Bitmap bmp = new(100, 100); 2233using Bitmap bmp = new(100, 100); 2278using Bitmap bmp = new(100, 50); 2297using Bitmap bmp = new(100, 50); 2316using Bitmap bmp = new(100, 50); 2335using Bitmap bmp = new(40, 40); 2343using Bitmap bmp = new(40, 40); 2359using Bitmap bmp = new(40, 40); 2367using Bitmap bmp = new(40, 40); 2376using Bitmap bmp = new(40, 40); 2384using Bitmap bmp = new(40, 40); 2400using Bitmap bmp = new(40, 40); 2408using Bitmap bmp = new(40, 40); 2419using Bitmap bmp = new(40, 40); 2427using Bitmap bmp = new(40, 40); 2435using Bitmap bmp = new(40, 40); 2443using Bitmap bmp = new(40, 40); 2451using Bitmap bmp = new(40, 40); 2459using Bitmap bmp = new(40, 40); 2470using Bitmap bmp = new(40, 40); 2478using Bitmap bmp = new(40, 40); 2493using Bitmap bmp = new(40, 40); 2501using Bitmap bmp = new(40, 40); 2509using Bitmap bmp = new(40, 40); 2517using Bitmap bmp = new(40, 40); 2525using Bitmap bmp = new(40, 40); 2533using Bitmap bmp = new(40, 40); 2541using Bitmap bmp = new(40, 40); 2549using Bitmap bmp = new(40, 40); 2557using Bitmap bmp = new(40, 40); 2565using Bitmap bmp = new(40, 40); 2573using Bitmap bmp = new(40, 40); 2581using Bitmap bmp = new(40, 40); 2589using Bitmap bmp = new(40, 40); 2596using Bitmap bmp = new(40, 40); 2626using Bitmap bmp = new(40, 40); 2634using Bitmap bmp = new(40, 40); 2684using Bitmap bmp = new(40, 40); 2692using Bitmap bmp = new(40, 40); 2743using Bitmap bmp = new(40, 40); 2754using Bitmap bmp = new(40, 40); 2763using Bitmap bmp = new(40, 40); 2771using Bitmap bmp = new(40, 40); 2779using Bitmap bmp = new(40, 40); 2787using Bitmap bmp = new(40, 40); 2795using Bitmap bmp = new(40, 40); 2803using Bitmap bmp = new(40, 40); 2811using Bitmap bmp = new(40, 40); 2819using Bitmap bmp = new(40, 40); 2827using Bitmap bmp = new(40, 40); 2835using Bitmap bmp = new(40, 40); 2854using Bitmap bmp = new(20, 20); 2863using Bitmap bmp = new(20, 20); 2871using Bitmap bmp = new(20, 20); 2896using Bitmap bmp = new(20, 20); 2905using Bitmap bmp = new(20, 20); 2913using Bitmap bmp = new(20, 20); 2938using Bitmap bmp = new(10, 10); 2964using Bitmap bmp = new(10, 10); 2982using Bitmap b = new(100, 100);
mono\System.Imaging\MetafileTest.cs (5)
216using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 233using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 249using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 289using (Bitmap bmp = new(100, 100, PixelFormat.Format32bppArgb)) 331using Bitmap bmp = new(100, 100, PixelFormat.Format32bppArgb);
System\Drawing\BitmapTests.cs (167)
45using Bitmap bitmap = new(Helpers.GetTestBitmapPath(filename)); 58using Bitmap bitmap = new(Helpers.GetTestBitmapPath(filename), useIcm); 69AssertExtensions.Throws<ArgumentNullException>("path", () => new Bitmap((string)null)); 70AssertExtensions.Throws<ArgumentNullException>("path", () => new Bitmap((string)null, false)); 79AssertExtensions.Throws<ArgumentException>(paramName, null, () => new Bitmap(filename)); 80AssertExtensions.Throws<ArgumentException>(paramName, null, () => new Bitmap(filename, false)); 81AssertExtensions.Throws<ArgumentException>(paramName, null, () => new Bitmap(filename, true)); 87using Bitmap bitmap = new(typeof(BitmapTests), "bitmap_173x183_indexed_8bit.bmp"); 97AssertExtensions.Throws<ArgumentNullException, NullReferenceException>("type", () => new Bitmap(null, "name")); 107AssertExtensions.Throws<ArgumentException>(null, () => new Bitmap(type, resource)); 113AssertExtensions.Throws<ArgumentNullException, ArgumentException>("resource", null, () => new Bitmap(typeof(Bitmap), null)); 121using Bitmap bitmap = new(stream); 135using Bitmap bitmap = new(stream, useIcm); 146AssertExtensions.Throws<ArgumentNullException, ArgumentException>("stream", null, () => new Bitmap((Stream)null)); 147AssertExtensions.Throws<ArgumentNullException, ArgumentException>("stream", null, () => new Bitmap((Stream)null, false)); 154AssertExtensions.Throws<ArgumentException>(null, () => new Bitmap(stream)); 155AssertExtensions.Throws<ArgumentException>(null, () => new Bitmap(stream, false)); 156AssertExtensions.Throws<ArgumentException>(null, () => new Bitmap(stream, true)); 164using Bitmap bitmap = new(width, height); 188using Bitmap bitmap = new(width, height, pixelFormat); 207using Bitmap bitmap = new(width, height, stride, pixelFormat, scan0); 221AssertExtensions.Throws<ArgumentException>(null, () => new Bitmap(width, 1)); 222AssertExtensions.Throws<ArgumentException>(null, () => new Bitmap(width, 1, Graphics.FromImage(new Bitmap(1, 1)))); 223AssertExtensions.Throws<ArgumentException>(null, () => new Bitmap(new Bitmap(1, 1), width, 1)); 224AssertExtensions.Throws<ArgumentException>(null, () => new Bitmap(new Bitmap(1, 1), new Size(width, 1))); 225AssertExtensions.Throws<ArgumentException>(null, () => new Bitmap(width, 1, PixelFormat.Format16bppArgb1555)); 226AssertExtensions.Throws<ArgumentException>(null, () => new Bitmap(width, 1, 0, PixelFormat.Format16bppArgb1555, IntPtr.Zero)); 236AssertExtensions.Throws<ArgumentException>(null, () => new Bitmap(1, height)); 237AssertExtensions.Throws<ArgumentException>(null, () => new Bitmap(1, height, Graphics.FromImage(new Bitmap(1, 1)))); 238AssertExtensions.Throws<ArgumentException>(null, () => new Bitmap(new Bitmap(1, 1), 1, height)); 239AssertExtensions.Throws<ArgumentException>(null, () => new Bitmap(new Bitmap(1, 1), new Size(1, height))); 240AssertExtensions.Throws<ArgumentException>(null, () => new Bitmap(1, height, PixelFormat.Format16bppArgb1555)); 241AssertExtensions.Throws<ArgumentException>(null, () => new Bitmap(1, height, 0, PixelFormat.Format16bppArgb1555, IntPtr.Zero)); 257AssertExtensions.Throws<ArgumentException>(null, () => new Bitmap(1, 1, format)); 258AssertExtensions.Throws<ArgumentException>(null, () => new Bitmap(1, 1, 0, format, IntPtr.Zero)); 269yield return new object[] { new Bitmap(1, 1, PixelFormat.Format16bppRgb555), 1, 1 }; 270yield return new object[] { new Bitmap(1, 1, PixelFormat.Format16bppRgb565), 1, 1 }; 271yield return new object[] { new Bitmap(1, 1, PixelFormat.Format24bppRgb), 1, 1 }; 272yield return new object[] { new Bitmap(1, 1, PixelFormat.Format32bppArgb), 1, 1 }; 273yield return new object[] { new Bitmap(1, 1, PixelFormat.Format32bppPArgb), 1, 1 }; 274yield return new object[] { new Bitmap(1, 1, PixelFormat.Format48bppRgb), 1, 1 }; 275yield return new object[] { new Bitmap(1, 1, PixelFormat.Format64bppArgb), 1, 1 }; 276yield return new object[] { new Bitmap(1, 1, PixelFormat.Format64bppPArgb), 1, 1 }; 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 }; 287using Bitmap bitmap = new(width, height, graphics); 297AssertExtensions.Throws<ArgumentNullException>("g", null, () => new Bitmap(1, 1, null)); 303using Bitmap image = new(Helpers.GetTestBitmapPath("16x16_one_entry_4bit.ico")); 304using Bitmap bitmap = new(image); 314Assert.Throws<NullReferenceException>(() => new Bitmap((Image)null)); 321using Bitmap bitmap = new(image, width, height); 332using Bitmap bitmap = new(image, new Size(width, height)); 342AssertExtensions.Throws<ArgumentNullException>("original", "image", () => new Bitmap(null, new Size(1, 2))); 343AssertExtensions.Throws<ArgumentNullException>("original", "image", () => new Bitmap(null, 1, 2)); 349Bitmap image = new(1, 1); 352AssertExtensions.Throws<ArgumentException>(null, () => new Bitmap(image)); 353AssertExtensions.Throws<ArgumentException>(null, () => new Bitmap(image, 1, 1)); 354AssertExtensions.Throws<ArgumentException>(null, () => new Bitmap(image, new Size(1, 1))); 359yield return new object[] { new Bitmap(3, 3, PixelFormat.Format32bppArgb), new Rectangle(0, 0, 3, 3), PixelFormat.Format32bppArgb }; 360yield return new object[] { new Bitmap(3, 3, PixelFormat.Format32bppArgb), new Rectangle(0, 0, 3, 3), PixelFormat.Format24bppRgb }; 361yield return new object[] { new Bitmap(3, 3, PixelFormat.Format1bppIndexed), new Rectangle(1, 1, 1, 1), PixelFormat.Format64bppArgb }; 362yield return new object[] { new Bitmap(3, 3, PixelFormat.Format64bppPArgb), new Rectangle(1, 1, 1, 1), PixelFormat.Format16bppRgb565 }; 425using Bitmap bitmap = new(3, 3); 439using Bitmap bitmap = new(3, 3); 455using Bitmap bitmap = new(1, 1); 463using Bitmap bitmap = new(1, 1, PixelFormat.Format16bppGrayScale); 471using Bitmap bitmap = new(1, 1); 481Bitmap bitmap = new(1, 1); 492using Bitmap bitmap = new(1, 1); 502Bitmap bitmap = new(1, 1); 514using Bitmap bitmap = new(1, 1); 524Bitmap bitmap = new(1, 1); 532yield return new object[] { new Bitmap(1, 1, PixelFormat.Format1bppIndexed), 0, 0, Color.FromArgb(0, 0, 0) }; 533yield return new object[] { new Bitmap(1, 1, PixelFormat.Format4bppIndexed), 0, 0, Color.FromArgb(0, 0, 0) }; 534yield return new object[] { new Bitmap(1, 1, PixelFormat.Format8bppIndexed), 0, 0, Color.FromArgb(0, 0, 0) }; 535yield return new object[] { new Bitmap(100, 100, PixelFormat.Format32bppRgb), 0, 0, Color.FromArgb(0, 0, 0) }; 536yield return new object[] { new Bitmap(100, 100, PixelFormat.Format32bppRgb), 99, 99, Color.FromArgb(0, 0, 0) }; 558using Bitmap bitmap = new(1, 1); 567using Bitmap bitmap = new(1, 1); 574using Bitmap bitmap = new(1, 1, PixelFormat.Format16bppGrayScale); 581Bitmap bitmap = new(1, 1); 589yield return new object[] { new Bitmap(1, 1, PixelFormat.Format32bppRgb), 1, 1 }; 590yield return new object[] { new Bitmap(32, 32, PixelFormat.Format32bppArgb), 32, 32 }; 591yield return new object[] { new Bitmap(512, 512, PixelFormat.Format16bppRgb555), 512, 512 }; 639using Bitmap bitmap = new(width, height, PixelFormat.Format16bppGrayScale); 646Bitmap bitmap = new(1, 1); 689yield return new object[] { new Bitmap(1, 1, PixelFormat.Format32bppRgb).GetHicon(), 1, 1 }; 690yield return new object[] { new Bitmap(32, 32, PixelFormat.Format32bppRgb).GetHicon(), 32, 32 }; 691yield return new object[] { new Bitmap(512, 512, PixelFormat.Format16bppRgb555).GetHicon(), 512, 512 }; 712using Bitmap bitmap = new(1, 1, PixelFormat.Format16bppGrayScale); 719Bitmap bitmap = new(1, 1); 788using Bitmap bitmap = new(10, 10); 824using Bitmap bitmap = new(10, 10); 860using Bitmap bitmap = new(10, 10); 882Bitmap bitmap = new(1, 1); 892using Bitmap bitmap = new(1, 1, PixelFormat.Format16bppGrayScale); 908using Bitmap bitmap = new(Helpers.GetTestBitmapPath("16x16_one_entry_4bit.ico")); 914yield return new object[] { new Bitmap(100, 100, PixelFormat.Format32bppRgb), 0, 0, Color.FromArgb(255, 128, 128, 128) }; 915yield return new object[] { new Bitmap(100, 100, PixelFormat.Format32bppRgb), 99, 99, Color.FromArgb(255, 128, 128, 128) }; 932using Bitmap bitmap = new(1, 1, format); 941using Bitmap bitmap = new(1, 1); 950using Bitmap bitmap = new(1, 1); 957using Bitmap bitmap = new(1, 1, PixelFormat.Format16bppGrayScale); 964Bitmap bitmap = new(1, 1); 976using Bitmap bitmap = new(1, 1); 987using Bitmap bitmap = new(1, 1); 998using Bitmap bitmap = new(1, 1); 1005Bitmap bitmap = new(1, 1); 1013static Bitmap bitmap() => new(2, 2, PixelFormat.Format32bppArgb); 1018yield return new object[] { new Bitmap(100, 100, PixelFormat.Format32bppRgb), new Rectangle(0, 0, 100, 100), ImageLockMode.ReadOnly, PixelFormat.Format32bppRgb, 400, 1 }; 1019yield return new object[] { new Bitmap(100, 100, PixelFormat.Format32bppRgb), new Rectangle(0, 0, 100, 100), ImageLockMode.ReadWrite, PixelFormat.Format32bppRgb, 400, 3 }; 1020yield return new object[] { new Bitmap(100, 100, PixelFormat.Format32bppRgb), new Rectangle(0, 0, 100, 100), ImageLockMode.WriteOnly, PixelFormat.Format32bppRgb, 400, 2 }; 1022yield return new object[] { new Bitmap(100, 100, PixelFormat.Format32bppRgb), new Rectangle(0, 0, 100, 100), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb, 300, 65537 }; 1023yield return new object[] { new Bitmap(100, 100, PixelFormat.Format32bppRgb), new Rectangle(0, 0, 100, 100), ImageLockMode.ReadWrite, PixelFormat.Format24bppRgb, 300, 65539 }; 1024yield return new object[] { new Bitmap(100, 100, PixelFormat.Format32bppRgb), new Rectangle(0, 0, 100, 100), ImageLockMode.WriteOnly, PixelFormat.Format24bppRgb, 300, 65538 }; 1026yield return new object[] { new Bitmap(100, 100, PixelFormat.Format24bppRgb), new Rectangle(0, 0, 100, 100), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb, 300, 1 }; 1027yield return new object[] { new Bitmap(100, 100, PixelFormat.Format24bppRgb), new Rectangle(0, 0, 100, 100), ImageLockMode.ReadWrite, PixelFormat.Format24bppRgb, 300, 3 }; 1028yield return new object[] { new Bitmap(100, 100, PixelFormat.Format24bppRgb), new Rectangle(0, 0, 100, 100), ImageLockMode.WriteOnly, PixelFormat.Format24bppRgb, 300, 2 }; 1030yield return new object[] { new Bitmap(100, 100, PixelFormat.Format24bppRgb), new Rectangle(0, 0, 100, 100), ImageLockMode.ReadOnly, PixelFormat.Format32bppRgb, 400, 65537 }; 1031yield return new object[] { new Bitmap(100, 100, PixelFormat.Format24bppRgb), new Rectangle(0, 0, 100, 100), ImageLockMode.ReadWrite, PixelFormat.Format32bppRgb, 400, 65539 }; 1032yield return new object[] { new Bitmap(100, 100, PixelFormat.Format24bppRgb), new Rectangle(0, 0, 100, 100), ImageLockMode.WriteOnly, PixelFormat.Format32bppRgb, 400, 65538 }; 1034yield return new object[] { new Bitmap(100, 100, PixelFormat.Format8bppIndexed), new Rectangle(0, 0, 100, 100), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb, 300, 65537 }; 1036yield return new object[] { new Bitmap(100, 100, PixelFormat.Format8bppIndexed), new Rectangle(0, 0, 100, 100), ImageLockMode.ReadOnly, PixelFormat.Format8bppIndexed, 100, 1 }; 1037yield return new object[] { new Bitmap(100, 100, PixelFormat.Format8bppIndexed), new Rectangle(0, 0, 100, 100), ImageLockMode.ReadWrite, PixelFormat.Format8bppIndexed, 100, 3 }; 1038yield return new object[] { new Bitmap(100, 100, PixelFormat.Format8bppIndexed), new Rectangle(0, 0, 100, 100), ImageLockMode.WriteOnly, PixelFormat.Format8bppIndexed, 100, 2 }; 1040yield return new object[] { new Bitmap(184, 184, PixelFormat.Format1bppIndexed), new Rectangle(0, 0, 184, 184), ImageLockMode.ReadOnly, PixelFormat.Format1bppIndexed, 24, 1 }; 1041yield return new object[] { new Bitmap(184, 184, PixelFormat.Format1bppIndexed), new Rectangle(0, 0, 184, 184), ImageLockMode.ReadWrite, PixelFormat.Format1bppIndexed, 24, 3 }; 1042yield return new object[] { new Bitmap(184, 184, PixelFormat.Format1bppIndexed), new Rectangle(0, 0, 184, 184), ImageLockMode.WriteOnly, PixelFormat.Format1bppIndexed, 24, 2 }; 1052yield return new object[] { new Bitmap(100, 100, PixelFormat.Format32bppRgb), new Rectangle(0, 0, 100, 100), ImageLockMode.ReadOnly, PixelFormat.Format8bppIndexed, 100, 65537 }; 1053yield return new object[] { new Bitmap(100, 100, PixelFormat.Format32bppRgb), new Rectangle(0, 0, 100, 100), ImageLockMode.ReadWrite, PixelFormat.Format8bppIndexed, 100, 65539 }; 1054yield return new object[] { new Bitmap(100, 100, PixelFormat.Format32bppRgb), new Rectangle(0, 0, 100, 100), ImageLockMode.WriteOnly, PixelFormat.Format8bppIndexed, 100, 65538 }; 1056yield return new object[] { new Bitmap(100, 100, PixelFormat.Format8bppIndexed), new Rectangle(0, 0, 100, 100), ImageLockMode.ReadWrite, PixelFormat.Format24bppRgb, 300, 65539 }; 1057yield return new object[] { new Bitmap(100, 100, PixelFormat.Format8bppIndexed), new Rectangle(0, 0, 100, 100), ImageLockMode.WriteOnly, PixelFormat.Format24bppRgb, 300, 65538 }; 1094using Bitmap bitmap = new(1, 1); 1112using Bitmap bitmap = new(2, 2); 1131using Bitmap bitmap = new(1, 1); 1145using Bitmap bitmap = new(1, 1); 1162using Bitmap bitmap = new(1, 1); 1173Bitmap bitmap = new(1, 1); 1185using Bitmap bitmap = new(1, 1); 1201using Bitmap bitmap = new(2, 2); 1212using Bitmap bitmap = new(1, 1); 1224using Bitmap bitmap = new(1, 1); 1234using Bitmap bitmap = new(1, 1); 1241using Bitmap bitmap = new(1, 1); 1248using Bitmap bitmap = new(1, 1); 1258Bitmap bitmap = new(1, 1); 1267Bitmap bitmap = new(1, 1); 1287using Bitmap bitmap = new(2, 1, format); 1439using Bitmap bitmap = new(1, 1, pixelFormat); 1446using Bitmap bitmap = new(1, 1); 1453Bitmap bitmap = new(1, 1); 1468using (Bitmap bitmap = new(1, 1, PixelFormat.Format32bppRgb)) 1523using (Bitmap bitmap = new(1, 1, PixelFormat.Format32bppArgb)) 1567using (Bitmap bitmap = new(100, 100)) 1574using Bitmap bitmap = new(new TestStream(stream, canSeek: false)); 1589using (Bitmap bitmap = new(100, 100)) 1596using (Bitmap bitmap = new(backingStream)) 1651using Bitmap bitmap = new(1, 1); 1660using Bitmap bitmap = new(1, 1); 1685using Bitmap bitmap = new(1, 1);
System\Drawing\BufferedGraphicsContextTests.cs (11)
21using Bitmap image = new(10, 10); 33using Bitmap image = new(10, 10); 45using Bitmap image = new(10, 10); 57using Bitmap image = new(10, 10); 79using Bitmap image = new(10, 10); 101using Bitmap image = new(10, 10); 138using Bitmap image = new(10, 10); 146using Bitmap image = new(10, 10); 159using Bitmap image = new(10, 10); 229using Bitmap image = new(10, 10); 241using Bitmap image = new(10, 10);
System\Drawing\BufferedGraphicsTests.cs (7)
12using Bitmap image = new(3, 3); 27using Bitmap image = new(3, 3); 44using Bitmap image = new(3, 3); 64using Bitmap image = new(3, 3); 87using Bitmap originalImage = new(3, 3); 88using Bitmap targetImage = new(3, 3); 109using Bitmap image = new(3, 3);
System\Drawing\Drawing2D\GraphicsPathTests.cs (7)
1754using Bitmap bitmap = new(20, 20); 1762using Bitmap bitmap = new(5, 5); 1770using Bitmap bitmap = new(20, 20); 1780using Bitmap bitmap = new(20, 20); 1789using Bitmap bitmap = new(20, 20); 1810using Bitmap bitmap = new(40, 40); 1824using Bitmap bitmap = new(40, 40);
System\Drawing\FontFamilyTests.cs (1)
97using Bitmap image = new(10, 10);
System\Drawing\FontTests.cs (11)
467using Bitmap image = new(10, 10); 502using Bitmap image = new(10, 10); 534using Bitmap image = new(10, 10); 545using Bitmap image = new(10, 10); 591using Bitmap image = new(10, 10); 616using Bitmap image = new(10, 10); 635using Bitmap image = new(10, 10); 736using Bitmap image = new(10, 10); 764using Bitmap image = new(10, 10); 783using Bitmap image = new(10, 10); 840using Bitmap image = new(10, 10);
System\Drawing\GdiPlusHandlesTests.cs (1)
24using Bitmap bmp = new(100, 100);
System\Drawing\Graphics_DrawBezierTests.cs (13)
11using Bitmap bitmap = new(100, 100); 25using Bitmap bitmap = new(100, 100); 44using Bitmap bitmap = new(100, 100); 63using Bitmap image = new(10, 10); 73using Bitmap image = new(10, 10); 86using Bitmap image = new(10, 10); 105using Bitmap image = new(10, 10); 119using Bitmap image = new(10, 10); 128using Bitmap image = new(10, 10); 140using Bitmap image = new(10, 10); 150using Bitmap image = new(10, 10); 160using Bitmap image = new(10, 10); 178using Bitmap image = new(10, 10);
System\Drawing\Graphics_DrawLineTests.cs (12)
11using Bitmap bitmap = new(100, 100); 26using Bitmap bitmap = new(100, 100); 41using Bitmap image = new(10, 10); 52using Bitmap image = new(10, 10); 66using Bitmap image = new(10, 10); 86using Bitmap image = new(10, 10); 100using Bitmap image = new(10, 10); 109using Bitmap image = new(10, 10); 121using Bitmap image = new(10, 10); 133using Bitmap image = new(10, 10); 143using Bitmap image = new(10, 10); 161using Bitmap image = new(10, 10);
System\Drawing\Graphics_GetContextTests.Core.cs (7)
14using Bitmap image = new(10, 10); 27using Bitmap image = new(10, 10); 45using Bitmap image = new(10, 10); 60using Bitmap image = new(10, 10); 79using Bitmap image = new(10, 10); 98using Bitmap image = new(10, 10); 119using Bitmap image = new(10, 10);
System\Drawing\Graphics_GetContextTests.cs (7)
14using Bitmap image = new(10, 10); 31using Bitmap image = new(10, 10); 46using Bitmap image = new(10, 10); 62using Bitmap image = new(10, 10); 80using Bitmap image = new(10, 10); 98using Bitmap image = new(10, 10); 119using Bitmap image = new(10, 10);
System\Drawing\GraphicsTests.Core.cs (14)
16using Bitmap image = new(5, 5); 25using Bitmap image = new(10, 10); 42using Bitmap image = new(10, 10); 53using Bitmap image = new(10, 10); 73using Bitmap image = new(10, 10); 83using Bitmap image = new(10, 10); 96using Bitmap image = new(10, 10); 114using Bitmap image = new(10, 10); 127using Bitmap image = new(10, 10); 137using Bitmap image = new(10, 10); 150using Bitmap image = new(10, 10); 161using Bitmap image = new(10, 10); 172using Bitmap image = new(10, 10); 190using Bitmap image = new(10, 10);
System\Drawing\GraphicsTests.cs (193)
21using Bitmap bitmap = new(10, 10); 40using Bitmap bitmap = new(10, 10); 57using Bitmap bitmap = new(10, 10); 73using Bitmap bitmap = new(10, 10); 135using Bitmap bitmap = new(10, 10); 156using Bitmap bitmap = new(10, 10); 170using Bitmap bitmap1 = new(10, 10); 171using Bitmap bitmap2 = new(10, 10); 188using Bitmap bitmap = new(10, 10); 198using Bitmap bitmap = new(10, 10); 250using Bitmap image = new(10, 10, format); 267using Bitmap image = new(10, 10, format); 276Bitmap image = new(10, 10); 294using Bitmap image = new(10, 10, format); 313using Bitmap image = new(3, 3); 315using Bitmap targetImage = new(3, 3); 337using Bitmap image = new(10, 10); 345using Bitmap image = new(10, 10); 362using Bitmap image = new(10, 10); 405using Bitmap image = new(3, 3); 421using Bitmap image = new(10, 10); 429using Bitmap image = new(10, 10); 446using Bitmap image = new(10, 10); 457using Bitmap bitmap = new(10, 10); 469using Bitmap bitmap = new(10, 10); 483using Bitmap image = new(10, 10); 499using Bitmap image = new(10, 10); 509using Bitmap image = new(10, 10); 525using Bitmap image = new(10, 10); 539using Bitmap image = new(10, 10); 554using Bitmap image = new(10, 10); 571using Bitmap image = new(10, 10); 590using Bitmap image = new(10, 10); 601using Bitmap image = new(10, 10); 609using Bitmap image = new(10, 10); 617using Bitmap image = new(10, 10); 634using Bitmap image = new(10, 10); 648using Bitmap image = new(10, 10); 662using Bitmap image = new(10, 10); 670using Bitmap image = new(10, 10); 687using Bitmap image = new(10, 10); 704using Bitmap image = new(10, 10); 715using Bitmap image = new(10, 10); 723using Bitmap image = new(10, 10); 731using Bitmap image = new(10, 10); 748using Bitmap image = new(10, 10); 764using Bitmap image = new(10, 10); 775using Bitmap image = new(10, 10); 783using Bitmap image = new(10, 10); 791using Bitmap image = new(10, 10); 808using Bitmap image = new(10, 10); 860using Bitmap image = new(3, 3); 873using Bitmap image = new(10, 10); 890using Bitmap image = new(10, 10); 906using Bitmap image = new(10, 10); 917using Bitmap image = new(10, 10); 925using Bitmap image = new(10, 10); 933using Bitmap image = new(10, 10); 950using Bitmap image = new(10, 10); 964using Bitmap image = new(10, 10); 975using Bitmap image = new(10, 10); 983using Bitmap image = new(10, 10); 1000using Bitmap image = new(10, 10); 1017using Bitmap image = new(10, 10); 1028using Bitmap image = new(10, 10); 1036using Bitmap image = new(10, 10); 1053using Bitmap image = new(10, 10); 1067using Bitmap image = new(5, 5); 1090using Bitmap image = new(10, 10); 1098using Bitmap image = new(10, 10); 1109using Bitmap image = new(5, 5); 1118using Bitmap image = new(10, 10); 1136using Bitmap image = new(10, 10); 1148using Bitmap image = new(10, 10); 1161using Bitmap image = new(10, 10); 1177using Bitmap image = new(10, 10); 1187using Bitmap image = new(10, 10); 1204using Bitmap image = new(10, 10); 1219using Bitmap image = new(10, 10); 1243using Bitmap image = new(10, 10); 1255using Bitmap image = new(10, 10); 1264using Bitmap image = new(10, 10); 1282using Bitmap image = new(10, 10); 1297using Bitmap image = new(10, 10); 1317using Bitmap image = new(10, 10); 1333using Bitmap image = new(10, 10); 1341using Bitmap image = new(10, 10); 1358using Bitmap image = new(10, 10); 1371using Bitmap image = new(10, 10); 1389using Bitmap image = new(10, 10); 1403using Bitmap image = new(10, 10); 1414using Bitmap image = new(10, 10); 1422using Bitmap image = new(10, 10); 1439using Bitmap image = new(10, 10); 1454using Bitmap image = new(10, 10); 1474using Bitmap image = new(10, 10); 1490using Bitmap image = new(10, 10); 1498using Bitmap image = new(10, 10); 1515using Bitmap image = new(10, 10); 1538using Bitmap image = new(10, 10); 1555using Bitmap image = new(10, 10); 1607using Bitmap image = new(10, 10); 1618using Bitmap image = new(10, 10); 1646using Bitmap image = new(10, 10); 1654using Bitmap image = new(10, 10); 1674using Bitmap image = new(10, 10); 1739using Bitmap image = new(10, 10); 1804using Bitmap image = new(10, 10); 1820using Bitmap image = new(10, 10); 1836using Bitmap image = new(10, 10); 1851using Bitmap image = new(10, 10); 1862using Bitmap image = new(10, 10); 1871using Bitmap image = new(10, 10); 1880using Bitmap image = new(10, 10); 1889using Bitmap image = new(10, 10); 1906using Bitmap image = new(10, 10); 1924using Bitmap image = new(10, 10, pixelFormat); 1932using Bitmap image = new(10, 10); 1948using Bitmap image = new(10, 10); 1958using Bitmap image = new(10, 10); 1969using Bitmap image = new(10, 10); 1983using Bitmap image = new(10, 10); 1995using Bitmap image = new(10, 10); 2007using Bitmap image = new(10, 10); 2027using Bitmap image = new(10, 10); 2041using Bitmap image = new(10, 10); 2051using Bitmap image = new(10, 10); 2064using Bitmap image = new(10, 10); 2083using Bitmap image = new(10, 10); 2096using Bitmap image = new(10, 10); 2105using Bitmap image = new(10, 10); 2117using Bitmap image = new(10, 10); 2127using Bitmap image = new(10, 10); 2137using Bitmap image = new(10, 10); 2155using Bitmap image = new(10, 10); 2167using Bitmap image = new(10, 10); 2178using Bitmap image = new(10, 10); 2192using Bitmap image = new(10, 10); 2212using Bitmap image = new(10, 10); 2226using Bitmap image = new(10, 10); 2237using Bitmap image = new(10, 10); 2251using Bitmap image = new(10, 10); 2263using Bitmap image = new(10, 10); 2275using Bitmap image = new(10, 10); 2295using Bitmap image = new(10, 10); 2309using Bitmap image = new(10, 10); 2318using Bitmap image = new(10, 10); 2330using Bitmap image = new(10, 10); 2342using Bitmap image = new(10, 10); 2352using Bitmap image = new(10, 10); 2370using Bitmap image = new(10, 10); 2382using Bitmap image = new(10, 10); 2391using Bitmap image = new(10, 10); 2403using Bitmap image = new(10, 10); 2412using Bitmap image = new(10, 10); 2424using Bitmap image = new(10, 10); 2442using Bitmap image = new(10, 10); 2454using Bitmap image = new(10, 10); 2468using Bitmap image = new(10, 10); 2485using Bitmap image = new(10, 10); 2502using Bitmap image = new(10, 10); 2522using Bitmap image = new(10, 10); 2533using Bitmap image = new(10, 10); 2556using Bitmap image = new(10, 10); 2573using Bitmap image = new(10, 10); 2584using Bitmap image = new(10, 10); 2598using Bitmap image = new(10, 10); 2613using Bitmap image = new(10, 10); 2625using Bitmap image = new(10, 10); 2645using Bitmap image = new(10, 10); 2659using Bitmap image = new(10, 10); 2669using Bitmap image = new(10, 10); 2682using Bitmap image = new(10, 10); 2693using Bitmap image = new(10, 10); 2704using Bitmap image = new(10, 10); 2723using Bitmap image = new(10, 10); 2738using Bitmap image = new(2, 2); 2754using Bitmap image = new(10, 10); 2771using Bitmap image = new(10, 10); 2782using Bitmap image = new(50, 50); 2791using Bitmap image = new(10, 10); 2824using Bitmap bitmap = new(100, 100); 2864using Bitmap bitmap = new(10, 10); 2873using Bitmap bitmap = new(10, 10); 2884using Bitmap bitmap = new(10, 10); 2894using Bitmap bitmap = new(10, 10); 2905using Bitmap bitmap = new(10, 10); 2922using Bitmap bitmap = new(10, 10, sourceFormat); 2926using Bitmap bitmap2 = new(10, 10, destinationFormat); 2972using Bitmap bitmap = new(10, 10); 2981using Bitmap bitmap = new(10, 10); 2990using Bitmap bitmap = new(10, 10); 2999using Bitmap bitmap = new(10, 10);
System\Drawing\IconConverterTests.cs (2)
114Assert.Throws<NotSupportedException>(() => _icoConv.ConvertFrom(null, CultureInfo.InvariantCulture, new Bitmap(20, 20))); 126Assert.Throws<NotSupportedException>(() => _icoConvFrmTD.ConvertFrom(null, CultureInfo.InvariantCulture, new Bitmap(20, 20)));
System\Drawing\IconTests.cs (1)
614using (Bitmap bitmap = new(10, 10))
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\ImageConverterTests.cs (3)
141Assert.Throws<NotSupportedException>(() => _imgConv.ConvertFrom(null, CultureInfo.InvariantCulture, new Bitmap(20, 20))); 148Assert.Throws<NotSupportedException>(() => _imgConvFrmTD.ConvertFrom(null, CultureInfo.InvariantCulture, new Bitmap(20, 20))); 188Bitmap value = new(64, 64);
System\Drawing\ImageTests.cs (23)
26using Bitmap bitmap = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 34using Bitmap bitmap = new(1, 1); 42using Bitmap bitmap = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 84using Bitmap bitmap = new(Helpers.GetTestBitmapPath("almogaver1bit.bmp")); 92using Bitmap bitmap = new(1, 1); 100using Bitmap bitmap = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 114using Bitmap bitmap = new(1, 1); 124using Bitmap bitmap = new(Helpers.GetTestBitmapPath("almogaver1bit.bmp")); 131using Bitmap source = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 135using Bitmap bitmap = new(1, 1); 159using Bitmap bitmap = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 182using Bitmap bitmap = new(1, 1); 192using Bitmap bitmap = new(Helpers.GetTestBitmapPath("almogaver1bit.bmp")); 202using Bitmap source = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 206using Bitmap bitmap = new(1, 1); 220using Bitmap bitmap = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 230using Bitmap source = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 231using Bitmap bitmap = new(1, 1); 289using Bitmap bitmap = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 431using Bitmap source = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 432using Bitmap bitmap = new(Helpers.GetTestBitmapPath("almogaver1bit.bmp")); 654using Bitmap bitmap = new(1, 1); 665using Bitmap bitmap = new(1, 1);
System\Drawing\Imaging\CachedBitmapTests.cs (1)
12using Bitmap bitmap = new(10, 10);
System\Drawing\Imaging\Effects\EffectsTests.cs (17)
11using Bitmap bitmap = new(10, 10); 33using Bitmap bitmap = new(10, 10); 58using Bitmap bitmap = new(10, 10); 80using Bitmap bitmap = new(10, 10); 106using Bitmap bitmap = new(10, 10); 132using Bitmap bitmap = new(10, 10); 158using Bitmap bitmap = new(10, 10); 181using Bitmap bitmap = new(10, 10); 240using Bitmap bitmap = new(10, 10); 253using Bitmap bitmap = new(10, 10); 273using Bitmap bitmap = new(10, 10); 293using Bitmap bitmap = new(10, 10); 313using Bitmap bitmap = new(10, 10); 333using Bitmap bitmap = new(10, 10); 353using Bitmap bitmap = new(10, 10); 372using Bitmap bitmap = new(10, 10); 394using Bitmap bitmap = new(10, 10);
System\Drawing\Imaging\ImageAttributesTests.cs (47)
70using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 94using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 127using Bitmap bitmapBig = new(200, 100); 128using Bitmap bitmapSmall = new(100, 100); 147using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 171using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 202using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 273using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 298using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 342using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 365using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 392using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 421using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 482using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 495using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 508using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 537using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 551using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 581using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 594using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 607using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 638using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 669using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 684using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 717using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 734using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 751using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 785using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 800using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 815using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 848using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 863using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 904using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 930using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 960using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 1009using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 1024using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 1056using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 1122using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 1138using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 1171using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 1184using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 1197using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 1248using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 1262using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 1307using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 1322using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height);
System\Drawing\Imaging\MetafileTests.cs (43)
125using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 144using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 171using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 187using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 207using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 217using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 228using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 237using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 247using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 257using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 268using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 304using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 322using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 340using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 356using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 373using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 400using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 411using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 424using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 436using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 449using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 465using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 481using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 498using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 516using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 533using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 549using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 565using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 582using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 600using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 638using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 660using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 678using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 695using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 711using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 727using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 738using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 749using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 761using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 774using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 800using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 815using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 827using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb);
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\Drawing\PenTests.cs (1)
16yield return new object[] { new TextureBrush(new Bitmap(1, 1)), PenType.TextureFill };
System\Drawing\Printing\PrintDocumentTests.cs (1)
281using Bitmap bitmap = new(20, 20);
System\Drawing\Printing\PrinterSettingsTests.cs (1)
409using Bitmap bitmap = new(10, 10);
System\Drawing\RegionTests.cs (7)
32private static readonly Graphics s_graphic = Graphics.FromImage(new Bitmap(1, 1)); 478using Graphics graphics = Graphics.FromImage(new Bitmap(600, 800)); 607using Bitmap image = new(10, 10); 988using Bitmap image = new(10, 10); 1289using Bitmap image = new(10, 10); 1328using (Bitmap image = new(10, 10)) 1382using (Bitmap image = new(10, 10))
System\Drawing\TextureBrushTests.cs (35)
13yield return new object[] { new Bitmap(10, 10), PixelFormat.Format32bppPArgb, new Size(10, 10) }; 81yield return new object[] { new Bitmap(10, 10), new Rectangle(0, 0, 10, 10) }; 82yield return new object[] { new Bitmap(10, 10), new Rectangle(5, 5, 5, 5) }; 254Bitmap image = new(10, 10); 272using Bitmap image = new(10, 10); 290using Bitmap image = new(10, 10); 302using Bitmap image = new(10, 10); 314using Bitmap image = new(10, 10); 324using Bitmap image = new(10, 10); 345using Bitmap image = new(10, 10); 371using Bitmap image = new(10, 10); 380using Bitmap image = new(10, 10); 390using Bitmap image = new(10, 10); 409using Bitmap image = new(10, 10); 422using Bitmap image = new(10, 10); 434using Bitmap image = new(10, 10); 449using Bitmap image = new(10, 10); 474using Bitmap image = new(10, 10); 501using Bitmap image = new(10, 10); 509using Bitmap image = new(10, 10); 538using Bitmap image = new(10, 10); 565using Bitmap image = new(10, 10); 573using Bitmap image = new(10, 10); 585using Bitmap image = new(10, 10); 595using Bitmap image = new(10, 10); 603using Bitmap image = new(10, 10); 614using Bitmap image = new(10, 10); 643using Bitmap image = new(10, 10); 670using Bitmap image = new(10, 10); 678using Bitmap image = new(10, 10); 695using Bitmap image = new(10, 10); 706using Bitmap image = new(10, 10); 714using Bitmap image = new(10, 10); 805using Bitmap brushBitmap = new(2, 2); 812using Bitmap targetImage = new(4, 4);
System.Windows.Forms (25)
System\Windows\Forms\Control.cs (1)
4917using Bitmap image = new(width, height, bitmap.PixelFormat);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (1)
75using Bitmap bitmap = new(2, 2);
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (1)
308Bitmap bitmap = new(fullSize.Width, fullSize.Height);
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (1)
1359Bitmap bitmap = new(fullSize.Width, fullSize.Height);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (1)
834bmFlipXPThemes = FlipXPThemesBitmap = new Bitmap(backgroundBounds.Width, backgroundBounds.Height);
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (1)
702using Bitmap bmFlipXPThemes = new(backgroundBounds.Height, backgroundBounds.Width);
System\Windows\Forms\Controls\ImageList\ImageList.cs (4)
300bitmap = new Bitmap((Image)original._image); 336bitmap = new Bitmap(source, ImageSize); 631result = new Bitmap(_imageSize.Width, _imageSize.Height, PixelFormat.Format32bppArgb); 659result = new Bitmap(_imageSize.Width, _imageSize.Height);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
951return new Bitmap(size.Width, size.Height);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (1)
220_sizeGripGlyph = new Bitmap(s_resizeGripSize, s_resizeGripSize, g);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
2651using Bitmap image = new(bounds.Width, bounds.Height);
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
707Bitmap image = new(16, 16);
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (2)
877using Bitmap textBmp = new(textSize.Width, textSize.Height, PixelFormat.Format32bppPArgb); 1035Bitmap disabledBitmap = new(size.Width, size.Height);
System\Windows\Forms\Nrbf\WinFormsSerializationRecordExtensions.cs (1)
53bitmap = new Bitmap(new MemoryStream(data.GetArray()));
System\Windows\Forms\Rendering\ControlPaint.cs (8)
1367Bitmap bitmap = new(rectangle.Width, rectangle.Height); 1437using Bitmap bitmap = new(width, height); 1533using Bitmap bitmap = new(width, height); 1632using Bitmap bitmap = new(image.Width, image.Height); 2092using Bitmap bitmap = new(patternSize, patternSize); 2143using Bitmap b = new(2, 2); 2222using Bitmap bitmap = new(patternSize, patternSize); 2427Bitmap result = new(bitmap.Width, bitmap.Height, bitmap.PixelFormat);
System.Windows.Forms.Design (14)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (1)
293_swatch = new Bitmap(width, height);
System\Drawing\Design\BitmapEditor.cs (1)
19protected override Image LoadFromStream(Stream stream) => new Bitmap(stream);
System\Drawing\Design\ToolboxItem.cs (1)
607itemBitmap = new Bitmap(itemBitmap, new Size(s_iconWidth, s_iconHeight));
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (1)
1019_dragImage = new Bitmap(imageWidth, imageHeight, Drawing.Imaging.PixelFormat.Format32bppPArgb);
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionGlyph.cs (1)
93_image = new Bitmap(typeof(ToolStripPanelSelectionGlyph), fileName);
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
78s_selectedColumnsItemBitmap = new Bitmap(
System\Windows\Forms\Design\DesignBindingPicker.cs (3)
161Bitmap addNewBitmap = new( 289Bitmap addNewBitmap = new(typeof(DesignBindingPicker), "AddNewDataSource.bmp"); 1909Bitmap images = new(typeof(DesignBindingPicker), "DataPickerImages.bmp");
System\Windows\Forms\Design\DesignBindingValueUIHandler.cs (1)
24_dataBitmap = new Bitmap(typeof(DesignBindingValueUIHandler), "BoundProperty.bmp");
System\Windows\Forms\Design\DesignerUtils.cs (3)
120s_boxImage = new Bitmap(s_boxImageSize, s_boxImageSize, PixelFormat.Format32bppPArgb); 389image = new Bitmap( 422image = new Bitmap(
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (1)
587image = new Bitmap(typeof(ToolStripItemEditorForm), "BlankToolstrip.bmp");
System.Windows.Forms.Design.Tests (35)
System\ComponentModel\Design\ByteViewerTests.cs (4)
427using Bitmap image = new(10, 10); 468using Bitmap image = new(10, 10); 513using Bitmap image = new(10, 10); 543using Bitmap image = new(10, 10);
System\Drawing\Design\BitmapEditorTests.cs (1)
75using Bitmap image = new(10, 10);
System\Drawing\Design\FontNameEditorTests.cs (1)
86using (Bitmap bitmap = new(1, 1))
System\Drawing\Design\ImageEditorTests.cs (4)
132using Bitmap image = new(10, 10); 162using Bitmap image = new(10, 10); 163using Bitmap otherImage = new(3, 2); 187using Bitmap image = new(10, 10);
System\Drawing\Design\MetafileEditorTests.cs (1)
59using Bitmap image = new(10, 10);
System\Drawing\Design\ToolboxItemTests.cs (9)
103yield return new object[] { new Bitmap(10, 10) }; 1339using Bitmap bitmap = new(10, 10); 1340using Bitmap originalBitmap = new(10, 10); 1385using Bitmap bitmap = new(10, 10); 1386using Bitmap originalBitmap = new(10, 10); 1414using Bitmap bitmap = new(10, 10); 1415using Bitmap originalBitmap = new(10, 10); 1539Bitmap bitmap = new(10, 10); 1543Bitmap originalBitmap = new(10, 10);
System\Resources\Tools\StronglyTypedResourceBuilderTests.cs (1)
326using Bitmap bitmap = new(10, 10);
System\Windows\Forms\Design\DataSourceDescriptorCollectionTests.cs (1)
107public override Bitmap Image => new(1, 1);
System\Windows\Forms\Design\DataSourceGroupCollectionTests.cs (1)
102public override Bitmap Image => new(1, 1);
System\Windows\Forms\Design\DesignBindingValueUIHandlerTests.cs (1)
20using Bitmap bitmap = new(10, 10);
System\Windows\Forms\Design\EmbeddedResourceTests.cs (1)
108using Bitmap bitmap = new(stream);
System\Windows\Forms\Design\ImageCollectionCodeDomSerializerTests.cs (2)
88imageList.Images.Add("Key1", new Bitmap(1, 1)); 89imageList.Images.Add("Key2", new Bitmap(1, 1));
System\Windows\Forms\Design\ImageIndexEditorTests.cs (1)
33using Bitmap bitmap = new(10, 10);
System\Windows\Forms\Design\ImageListDesignerOriginalImageCollectionTests.cs (1)
14private readonly Image _image = new Bitmap(10, 10);
System\Windows\Forms\Design\ImageListImageEditorTests.cs (1)
20using Bitmap image = new(10, 10);
System\Windows\Forms\Design\ImageListImageTests.cs (5)
13using Bitmap bitmap = new(10, 10); 23using Bitmap bitmap = new(10, 10); 34using Bitmap bitmap = new(10, 10); 47using Bitmap bitmap = new(10, 10); 59using Bitmap bitmap = new(10, 10);
System.Windows.Forms.Primitives (2)
System\Windows\Forms\Internals\ScaleHelper.cs (2)
147Bitmap copy = new(bitmap); 177Bitmap scaledBitmap = new(desiredSize.Width, desiredSize.Height, bitmap.PixelFormat);
System.Windows.Forms.Primitives.Tests (23)
Interop\Ole32\IPictureTests.cs (1)
84using Bitmap bitmap = new(100, 200);
Interop\Oleaut32\ITypeInfoTests.cs (16)
18using Bitmap image = new(16, 32); 32using Bitmap image = new(16, 32); 46using Bitmap image = new(16, 32); 62using Bitmap image = new(16, 32); 82using Bitmap image = new(16, 32); 102using Bitmap image = new(16, 32); 136using Bitmap image = new(16, 32); 160using Bitmap image = new(16, 32); 174using Bitmap image = new(16, 32); 188using Bitmap image = new(16, 32); 210using Bitmap image = new(16, 32); 227using Bitmap image = new(16, 32); 241using Bitmap image = new(16, 32); 280using Bitmap image = new(16, 32); 293using Bitmap image = new(16, 32); 322using Bitmap image = new(16, 32);
System\Windows\Forms\DeviceContextHdcScopeTests.cs (2)
15using Bitmap b = new(10, 10); 248using Bitmap b = new(10, 10);
Windows\Win32\System\Com\IDispatchTests.cs (4)
16using Bitmap image = new(16, 32); 40using Bitmap image = new(16, 16); 51using Bitmap image = new(16, 16); 63using Bitmap image = new(16, 32);
System.Windows.Forms.Tests (1124)
CheckedListBoxTests.cs (6)
421using Bitmap image = new(10, 10); 443using Bitmap image = new(10, 10); 464using Bitmap image = new(10, 10); 475using Bitmap image = new(10, 10); 488using Bitmap image = new(10, 10); 815using Bitmap image = new(10, 10);
SerializableTypesTests.cs (1)
83imageList.Images.Add(new Bitmap(16, 16));
System\Drawing\Design\PaintValueEventArgsTests.cs (1)
24using Bitmap image = new(10, 10);
System\Drawing\Design\PropertyValueUIItemTests.cs (4)
15yield return new object[] { new Bitmap(10, 10), (PropertyValueUIItemInvokeHandler)Dummy_PropertyValueUIItemInvokeHandler, null }; 16yield return new object[] { new Bitmap(10, 10), (PropertyValueUIItemInvokeHandler)Dummy_PropertyValueUIItemInvokeHandler, string.Empty }; 17yield return new object[] { new Bitmap(10, 10), (PropertyValueUIItemInvokeHandler)Dummy_PropertyValueUIItemInvokeHandler, "tooltip" }; 39using Bitmap uiItemImage = new(10, 10);
System\Drawing\Design\UITypeEditorTests.cs (4)
102Bitmap bitmap = new(10, 10); 112using Bitmap image = new(10, 10); 120Bitmap bitmap = new(10, 10); 134using (Bitmap image = new(10, 10))
System\Resources\ResxDataNodeTests.cs (2)
27using Bitmap bitmap = new(10, 10); 41using Bitmap bitmap = new(10, 10);
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemDetailsAccessibleObjectTests.cs (1)
190using Image image = new Bitmap(1, 1);
System\Windows\Forms\AccessibleObjects\ToolStripDropDownButton.ToolStripDropDownButtonAccessibleObjectTests.cs (1)
103using Bitmap image = new(10, 10);
System\Windows\Forms\AxHostTests.cs (2)
1609Bitmap original = new(10, 11); 1669Bitmap original = new(10, 11);
System\Windows\Forms\BinaryFormat\WinFormsBinaryFormattedObjectTests.cs (5)
122using Bitmap bitmap = new(10, 10); 139using Bitmap bitmap = new(10, 10); 155using Bitmap bitmap = new(10, 10); 176using Bitmap image = new(10, 10); 200using Bitmap image = new(10, 10);
System\Windows\Forms\ButtonBaseTests.cs (30)
817foreach (Image image in new Image[] { null, new Bitmap(10, 10) }) 891foreach (Image image in new Image[] { null, new Bitmap(10, 10) }) 1387yield return new object[] { autoSize, enabled, visible, new Bitmap(10, 10) }; 1434using Bitmap value = new(10, 10); 1458using Bitmap value = new(10, 10); 1484using Bitmap value = new(10, 10); 1539yield return new object[] { true, enabled, visible, new Bitmap(10, 10), 1 }; 1541yield return new object[] { false, enabled, visible, new Bitmap(10, 10), 0 }; 1603yield return new object[] { autoSize, enabled, visible, new Bitmap(10, 10), 2 }; 1706yield return new object[] { true, enabled, visible, new Bitmap(10, 10), 1, 2 }; 1708yield return new object[] { false, enabled, visible, new Bitmap(10, 10), 0, 2 }; 1782using Bitmap image = new(10, 10); 1801using Bitmap image = new(10, 10); 1829using Bitmap image = new(10, 10); 2079using Bitmap image = new(10, 10); 2153using Bitmap image1 = new(10, 10); 2154using Bitmap image2 = new(10, 10); 2238using Bitmap image = new(10, 10); 2304using Bitmap image1 = new(10, 10); 2305using Bitmap image2 = new(10, 10); 2387using Bitmap image = new(10, 10); 2800foreach (Image image in new Image[] { null, new Bitmap(10, 10) }) 4344foreach (Image image in new Image[] { null, new Bitmap(10, 10) }) 4418foreach (Image image in new Image[] { null, new Bitmap(10, 10) }) 5105foreach (Image image in new Image[] { null, new Bitmap(10, 10) }) 5196foreach (Image image in new Image[] { null, new Bitmap(10, 10) }) 6934foreach (Image image in new Image[] { null, new Bitmap(10, 10) }) 7025foreach (Image image in new Image[] { null, new Bitmap(10, 10) }) 7364foreach (Image image in new Image[] { null, new Bitmap(10, 10) }) 7455foreach (Image image in new Image[] { null, new Bitmap(10, 10) })
System\Windows\Forms\ButtonTests.cs (2)
3425using Bitmap image = new(10, 10); 3498using Bitmap image = new(10, 10);
System\Windows\Forms\ClipboardTests.cs (2)
390using Bitmap bitmap = new(10, 10); 445using Bitmap bitmap = new(10, 10);
System\Windows\Forms\ColumnHeaderTests.cs (8)
374using Bitmap image1 = new(10, 10); 375using Bitmap image2 = new(10, 10); 460using Bitmap image1 = new(10, 10); 461using Bitmap image2 = new(10, 10); 593using Bitmap image1 = new(10, 10); 594using Bitmap image2 = new(10, 10); 682using Bitmap image1 = new(10, 10); 683using Bitmap image2 = new(10, 10);
System\Windows\Forms\ComboBoxTests.cs (10)
387using Bitmap bitmap = new(100, 100); 530using Bitmap image1 = new(10, 10); 541using Bitmap image2 = new(10, 10); 725using Bitmap bitmap = new(1, 1); 748using Bitmap bitmap = new(1, 1); 768using Bitmap bitmap = new(1, 1); 1969using Bitmap image = new(10, 10); 2006using Bitmap image = new(10, 10); 2066using Bitmap image = new(10, 10); 2110using Bitmap image = new(10, 10);
System\Windows\Forms\ComponentModel\Com2Interop\COM2PictureConverterTests.cs (1)
161using Bitmap bitmap = new(42, 70);
System\Windows\Forms\ComponentModel\Com2Interop\ComNativeDescriptorTests.cs (3)
25using Bitmap bitmap = new(10, 20); 35using Bitmap bitmap = new(10, 20); 84using Bitmap bitmap = new(10, 20);
System\Windows\Forms\ControlPaintTests.cs (115)
15yield return new object[] { new Bitmap(10, 10, PixelFormat.Format1bppIndexed), Color.Empty }; 16yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppRgb), Color.Empty }; 17yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppArgb), Color.Empty }; 18yield return new object[] { new Bitmap(10, 10, PixelFormat.Format1bppIndexed), Color.Red }; 19yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppRgb), Color.Red }; 20yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppArgb), Color.Red }; 21yield return new object[] { new Bitmap(10, 10, PixelFormat.Format1bppIndexed), Color.Transparent }; 22yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppRgb), Color.Transparent }; 23yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppArgb), Color.Transparent }; 24yield return new object[] { new Bitmap(11, 11, PixelFormat.Format1bppIndexed), Color.Red }; 25yield return new object[] { new Bitmap(11, 11, PixelFormat.Format32bppRgb), Color.Red }; 26yield return new object[] { new Bitmap(11, 11, PixelFormat.Format32bppArgb), Color.Red }; 27yield return new object[] { new Bitmap(16, 24, PixelFormat.Format1bppIndexed), Color.Red }; 28yield return new object[] { new Bitmap(16, 24, PixelFormat.Format32bppRgb), Color.Red }; 29yield return new object[] { new Bitmap(16, 24, PixelFormat.Format32bppArgb), Color.Red }; 56using Bitmap bitmap = new(3, 1); 91yield return new object[] { new Bitmap(10, 10, PixelFormat.Format1bppIndexed), monochromeMask }; 92yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppRgb), monochromeMask }; 93yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppArgb), monochromeMask }; 94yield return new object[] { new Bitmap(16, 24, PixelFormat.Format1bppIndexed), monochromeMask }; 95yield return new object[] { new Bitmap(16, 24, PixelFormat.Format32bppRgb), monochromeMask }; 96yield return new object[] { new Bitmap(16, 24, PixelFormat.Format32bppArgb), monochromeMask }; 97yield return new object[] { new Bitmap(11, 11, PixelFormat.Format1bppIndexed), monochromeMask }; 98yield return new object[] { new Bitmap(11, 11, PixelFormat.Format32bppRgb), monochromeMask }; 99yield return new object[] { new Bitmap(11, 11, PixelFormat.Format32bppArgb), monochromeMask }; 127using Bitmap mask = new(3, 1); 134using Bitmap bitmap = new(3, 1); 167using Bitmap bitmap = new(3, 1); 200yield return new object[] { new Bitmap(10, 10, PixelFormat.Format1bppIndexed) }; 201yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppRgb) }; 202yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppArgb) }; 203yield return new object[] { new Bitmap(16, 24, PixelFormat.Format1bppIndexed) }; 204yield return new object[] { new Bitmap(16, 24, PixelFormat.Format32bppRgb) }; 205yield return new object[] { new Bitmap(16, 24, PixelFormat.Format32bppArgb) }; 206yield return new object[] { new Bitmap(11, 11, PixelFormat.Format1bppIndexed) }; 207yield return new object[] { new Bitmap(11, 11, PixelFormat.Format32bppRgb) }; 208yield return new object[] { new Bitmap(11, 11, PixelFormat.Format32bppArgb) }; 235using Bitmap bitmap = new(3, 1); 276using Bitmap bitmap = new(1, 1); 563using Bitmap image = new(10, 10); 576using Bitmap image = new(10, 10); 622using Bitmap image = new(10, 10); 664using Bitmap image = new(10, 10); 702using Bitmap image = new(10, 10); 727using Bitmap image = new(10, 10); 755using Bitmap image = new(10, 10); 767using Bitmap image = new(10, 10); 779using Bitmap image = new(10, 10); 791using Bitmap image = new(10, 10); 827using Bitmap image = new(10, 10); 839using Bitmap image = new(10, 10); 865using Bitmap image = new(10, 10); 876using Bitmap image = new(10, 10); 887using Bitmap image = new(10, 10); 911using Bitmap image = new(10, 10); 923using Bitmap image = new(10, 10); 948using Bitmap image = new(10, 10); 959using Bitmap image = new(10, 10); 970using Bitmap image = new(10, 10); 991using Bitmap image = new(10, 10); 1003using Bitmap image = new(10, 10); 1029using Bitmap image = new(10, 10); 1040using Bitmap image = new(10, 10); 1051using Bitmap image = new(10, 10); 1072using Bitmap image = new(10, 10); 1084using Bitmap image = new(10, 10); 1109using Bitmap image = new(10, 10); 1120using Bitmap image = new(10, 10); 1131using Bitmap image = new(10, 10); 1151using Bitmap image = new(10, 10); 1179using Bitmap image = new(10, 10); 1210using Bitmap image = new(10, 10); 1245using Bitmap image = new(10, 10); 1282using Bitmap image = new(10, 10); 1303using Bitmap image = new(10, 10); 1310yield return new object[] { new Bitmap(10, 10), -10, -20, Color.Red }; 1311yield return new object[] { new Bitmap(10, 10), 0, 0, Color.Red }; 1312yield return new object[] { new Bitmap(10, 10), 1, 2, Color.Red }; 1313yield return new object[] { new Bitmap(10, 10), 0, 0, Color.Black }; 1314yield return new object[] { new Bitmap(10, 10), 0, 0, Color.White }; 1315yield return new object[] { new Bitmap(10, 10), 0, 0, Color.Transparent }; 1316yield return new object[] { new Bitmap(10, 10), 0, 0, Color.Empty }; 1331using Bitmap sourceImage = new(10, 10); 1342using Bitmap image = new(10, 10); 1349using Bitmap image = new(10, 10); 1371using Bitmap image = new(10, 10); 1402using Bitmap image = new(10, 10); 1434using Bitmap image = new(10, 10); 1446using Bitmap image = new(10, 10); 1458using Bitmap image = new(10, 10); 1488using Bitmap image = new(10, 10); 1500using Bitmap image = new(10, 10); 1512using Bitmap image = new(10, 10); 1533using Bitmap image = new(10, 10); 1545using Bitmap image = new(10, 10); 1570using Bitmap image = new(10, 10); 1581using Bitmap image = new(10, 10); 1592using Bitmap image = new(10, 10); 1613using Bitmap image = new(10, 10); 1625using Bitmap image = new(10, 10); 1650using Bitmap image = new(10, 10); 1661using Bitmap image = new(10, 10); 1672using Bitmap image = new(10, 10); 1751using Bitmap image = new(10, 10); 1763using Bitmap image = new(10, 10); 1788using Bitmap image = new(10, 10); 1799using Bitmap image = new(10, 10); 1810using Bitmap image = new(10, 10); 1836using Bitmap image = new(10, 10); 1871using Bitmap image = new(10, 10); 1883using Bitmap image = new(10, 10); 1919using Bitmap image = new(10, 10); 1931using Bitmap image = new(10, 10); 1967using Bitmap image = new(10, 10); 1996using Bitmap image = new(10, 10);
System\Windows\Forms\ControlTests.Handlers.cs (53)
381BackgroundImage = new Bitmap(10, 10) 385BackgroundImage = new Bitmap(10, 10) 3838foreach (Image backgroundImage in new Image[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb), new Bitmap(10, 10, PixelFormat.Format32bppArgb) }) 3856using Bitmap image = new(10, 10); 3901foreach (Image backgroundImage in new Image[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb) }) 3914yield return new object[] { parent, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 3915yield return new object[] { parent, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 3916yield return new object[] { parent, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 1 }; 3917yield return new object[] { parent, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 1 }; 3918yield return new object[] { parent, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 3919yield return new object[] { parent, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 3921yield return new object[] { parent, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 3922yield return new object[] { parent, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 3923yield return new object[] { parent, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 2 }; 3924yield return new object[] { parent, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 2 }; 3925yield return new object[] { parent, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 3926yield return new object[] { parent, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 3945foreach (Image backgroundImage in new Image[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb) }) 3958yield return new object[] { parent, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 3959yield return new object[] { parent, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 3960yield return new object[] { parent, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 3961yield return new object[] { parent, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 3962yield return new object[] { parent, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, expected1 }; 3963yield return new object[] { parent, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, expected1 }; 3965yield return new object[] { parent, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected1 }; 3966yield return new object[] { parent, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected1 }; 3967yield return new object[] { parent, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected1 }; 3968yield return new object[] { parent, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected1 }; 3969yield return new object[] { parent, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected1 }; 3970yield return new object[] { parent, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected1 }; 3978using Bitmap image = new(10, 10); 4028using Bitmap image = new(10, 10); 4073foreach (Image backgroundImage in new Image[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb) }) 4086yield return new object[] { true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 4087yield return new object[] { true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 4088yield return new object[] { true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 1 }; 4089yield return new object[] { true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 1 }; 4090yield return new object[] { false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 4091yield return new object[] { false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 4093yield return new object[] { true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4094yield return new object[] { true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4095yield return new object[] { true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4096yield return new object[] { true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4097yield return new object[] { false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4098yield return new object[] { false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4105using Bitmap image = new(10, 10); 4279Bitmap image = new(10, 10); 4638using Bitmap image = new(10, 10); 4657using Bitmap image = new(10, 10); 4696using Bitmap image = new(10, 10); 4725using Bitmap image = new(10, 10); 4761using Bitmap image = new(10, 10);
System\Windows\Forms\ControlTests.Methods.cs (12)
1849using Bitmap bitmap = new(20, 20); 1871using Bitmap bitmap = new(20, 20); 1900using Bitmap bitmap = new(10, 10); 1914using Bitmap bitmap = new(10, 10); 1928using Bitmap bitmap = new(10, 10); 4264using Bitmap image = new(10, 10); 4273using Bitmap image = new(10, 10); 4320using Bitmap image = new(10, 10); 12862using Bitmap image = new(10, 10); 12957using Bitmap image = new(10, 10); 13204using Bitmap image = new(10, 10); 13321using Bitmap image = new(10, 10);
System\Windows\Forms\ControlTests.Properties.cs (22)
1654yield return new object[] { new Bitmap(10, 10), 1 }; 1713using Bitmap image1 = new(10, 10); 1714using Bitmap image2 = new(10, 10); 1753Bitmap image1 = new(10, 10); 1764Bitmap image2 = new(10, 10); 1795Bitmap value = new(10, 10); 1842Bitmap image1 = new(10, 10); 1861Bitmap image2 = new(10, 10); 1895using Bitmap childBackgroundImage1 = new(10, 10); 1896using Bitmap childBackgroundImage2 = new(10, 10); 1935Bitmap image1 = new(10, 10); 1954Bitmap image2 = new(10, 10); 2041yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, false }; 2042yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, false }; 2043yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Center, true }; 2044yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Stretch, true }; 2045yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Zoom, true }; 2047yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppRgb), ImageLayout.None, false }; 2048yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppRgb), ImageLayout.Tile, false }; 2049yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppRgb), ImageLayout.Center, false }; 2050yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppRgb), ImageLayout.Stretch, false }; 2051yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppRgb), ImageLayout.Zoom, false };
System\Windows\Forms\CursorTests.cs (6)
381using Bitmap image = new(10, 10); 391using Bitmap image = new(10, 10); 407using Bitmap image = new(10, 10); 418using Bitmap image = new(10, 10); 428using Bitmap image = new(10, 10); 444using Bitmap image = new(10, 10);
System\Windows\Forms\DataGridViewCellPaintingEventArgsTests.cs (16)
23using Bitmap image = new(10, 10); 46using Bitmap image = new(10, 10); 61using Bitmap image = new(10, 10); 71using Bitmap image = new(10, 10); 82using Bitmap image = new(10, 10); 93using Bitmap image = new(10, 10); 106using Bitmap image = new(10, 10); 119using Bitmap image = new(10, 10); 132using Bitmap image = new(10, 10); 143using Bitmap image = new(10, 10); 156using Bitmap image = new(10, 10); 169using Bitmap image = new(10, 10); 182using Bitmap image = new(10, 10); 193using Bitmap image = new(10, 10); 206using Bitmap image = new(10, 10); 219using Bitmap image = new(10, 10);
System\Windows\Forms\DataGridViewCellTests.cs (26)
3679using Bitmap image = new(10, 10); 3831using Bitmap image = new(10, 10); 5254using Bitmap image = new(10, 10); 5269using Bitmap image = new(10, 10); 5291using Bitmap image = new(10, 10); 5304using Bitmap image = new(10, 10); 5316using Bitmap image = new(10, 10); 5328using Bitmap image = new(10, 10); 5342using Bitmap image = new(10, 10); 5356using Bitmap image = new(10, 10); 5366using Bitmap image = new(10, 10); 5375using Bitmap image = new(10, 10); 5384using Bitmap image = new(10, 10); 5398using Bitmap image = new(10, 10); 5412using Bitmap image = new(10, 10); 5421using Bitmap image = new(10, 10); 5430using Bitmap image = new(10, 10); 5444using Bitmap image = new(10, 10); 5458using Bitmap image = new(10, 10); 5468using Bitmap image = new(10, 10); 5477using Bitmap image = new(10, 10); 6020using Bitmap image = new(10, 10); 6028using Bitmap image = new(10, 10); 6044using Bitmap image = new(10, 10); 6054using Bitmap image = new(10, 10); 6064using Bitmap image = new(10, 10);
System\Windows\Forms\DataGridViewHeaderCellTests.cs (1)
4620using Bitmap image = new(10, 10);
System\Windows\Forms\DataGridViewRowPostPaintEventArgsTests.cs (15)
23using Bitmap image = new(10, 10); 42using Bitmap image = new(10, 10); 57using Bitmap image = new(10, 10); 74using Bitmap image = new(10, 10); 87using Bitmap image = new(10, 10); 100using Bitmap image = new(10, 10); 111using Bitmap image = new(10, 10); 124using Bitmap image = new(10, 10); 135using Bitmap image = new(10, 10); 148using Bitmap image = new(10, 10); 159using Bitmap image = new(10, 10); 172using Bitmap image = new(10, 10); 183using Bitmap image = new(10, 10); 196using Bitmap image = new(10, 10); 209using Bitmap image = new(10, 10);
System\Windows\Forms\DataGridViewRowPrePaintEventArgsTests.cs (17)
14Bitmap image = new(10, 10); 43using Bitmap image = new(10, 10); 58using Bitmap image = new(10, 10); 75using Bitmap image = new(10, 10); 90using Bitmap image = new(10, 10); 104using Bitmap image = new(10, 10); 114using Bitmap image = new(10, 10); 127using Bitmap image = new(10, 10); 138using Bitmap image = new(10, 10); 151using Bitmap image = new(10, 10); 162using Bitmap image = new(10, 10); 175using Bitmap image = new(10, 10); 186using Bitmap image = new(10, 10); 199using Bitmap image = new(10, 10); 210using Bitmap image = new(10, 10); 223using Bitmap image = new(10, 10); 236using Bitmap image = new(10, 10);
System\Windows\Forms\DataGridViewRowTests.cs (38)
4198using Bitmap image = new(10, 10); 4214using Bitmap image = new(10, 10); 4237using Bitmap image = new(10, 10); 4594using Bitmap image = new(10, 10); 4618using Bitmap image = new(10, 10); 4644using Bitmap image = new(10, 10); 4668using Bitmap image = new(10, 10); 4692using Bitmap image = new(10, 10); 4716using Bitmap image = new(10, 10); 4740using Bitmap image = new(10, 10); 4765using Bitmap image = new(10, 10); 4790using Bitmap image = new(10, 10); 4798using Bitmap image = new(10, 10); 4875using Bitmap image = new(10, 10); 5001using Bitmap image = new(10, 10); 5040using Bitmap image = new(10, 10); 5064using Bitmap image = new(10, 10); 5090using Bitmap image = new(10, 10); 5114using Bitmap image = new(10, 10); 5138using Bitmap image = new(10, 10); 5162using Bitmap image = new(10, 10); 5186using Bitmap image = new(10, 10); 5211using Bitmap image = new(10, 10); 5236using Bitmap image = new(10, 10); 5310using Bitmap image = new(10, 10); 5329using Bitmap image = new(10, 10); 5360using Bitmap image = new(10, 10); 5384using Bitmap image = new(10, 10); 5410using Bitmap image = new(10, 10); 5434using Bitmap image = new(10, 10); 5458using Bitmap image = new(10, 10); 5482using Bitmap image = new(10, 10); 5506using Bitmap image = new(10, 10); 5531using Bitmap image = new(10, 10); 5556using Bitmap image = new(10, 10); 5633using Bitmap image = new(10, 10); 5649using Bitmap image = new(10, 10); 5667using Bitmap image = new(10, 10);
System\Windows\Forms\DataGridViewTests.cs (2)
3488using Bitmap bitMap1 = new(10, 10); 3489using Bitmap bitMap2 = new(20, 20);
System\Windows\Forms\DataObjectTests.cs (13)
773using Bitmap bitmap1 = new(10, 10); 777using Bitmap bitmap2 = new(10, 10); 847using Bitmap bitmap1 = new(10, 10); 852using Bitmap bitmap2 = new(10, 10); 895Bitmap image = new(10, 10); 1160{ new Bitmap(10, 10), typeof(Bitmap).FullName }, 1335using Bitmap image = new(10, 10); 1488using Bitmap image = new(10, 10); 1596((Action)(() => dataObject.SetData(DataFormats.Dib, false, new Bitmap(10, 10)))) 1669using Bitmap image = new(10, 10); 1693using Bitmap image = new(10, 10); 1709using Bitmap image = new(10, 10); 2890using Bitmap bitmap = new(10, 10);
System\Windows\Forms\DateTimePickerTests.cs (4)
546using (Bitmap bmp = new(1, 1)) 554using (Bitmap bmp = new(1, 1)) 720using (Bitmap bmp = new(10, 10)) 728using (Bitmap bmp = new(20, 20))
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
290using var value = Icon.FromHandle(new Bitmap(10, 10).GetHicon());
System\Windows\Forms\DragDropHelperTests.cs (6)
24yield return new object[] { new DataObject(), new Bitmap(1, 1), new Point(1, 1), false }; 26yield return new object[] { new DataObject(), new Bitmap(1, 1), new Point(1, 1), true }; 31yield return new object[] { new DataObject(), new GiveFeedbackEventArgs(DragDropEffects.All, false, new Bitmap(1, 1), new Point(0, 0), false) }; 33yield return new object[] { new DataObject(), new GiveFeedbackEventArgs(DragDropEffects.All, false, new Bitmap(1, 1), new Point(0, 0), true) }; 168using Bitmap bitmap = new(1, 1); 176using Bitmap bitmap = new(1, 1);
System\Windows\Forms\DrawItemEventArgsTests.cs (4)
26using Bitmap image = new(10, 10); 51using Bitmap image = new(10, 10); 91using Bitmap image = new(10, 10); 101using Bitmap image = new(10, 10);
System\Windows\Forms\DrawListViewColumnHeaderEventArgsTests.cs (6)
25using Bitmap image = new(10, 10); 49using Bitmap image = new(10, 10); 77using Bitmap image = new(10, 10); 89using Bitmap image = new(10, 10); 99using Bitmap image = new(10, 10); 115using Bitmap image = new(10, 10);
System\Windows\Forms\DrawListViewItemEventArgsTests.cs (7)
25using Bitmap image = new(10, 10); 46using Bitmap image = new(10, 10); 55using Bitmap image = new(10, 10); 114using Bitmap image = new(10, 10); 124using Bitmap image = new(10, 10); 134using Bitmap image = new(10, 10); 144using Bitmap image = new(10, 10);
System\Windows\Forms\DrawListViewSubItemEventArgsTests.cs (6)
26using Bitmap image = new(10, 10); 49using Bitmap image = new(10, 10); 59using Bitmap image = new(10, 10); 68using Bitmap image = new(10, 10); 118using Bitmap image = new(10, 10); 128using Bitmap image = new(10, 10);
System\Windows\Forms\DrawToolTipEventArgsTests.cs (5)
24using Bitmap image = new(10, 10); 49using Bitmap image = new(10, 10); 59using Bitmap image = new(10, 10); 69using Bitmap image = new(10, 10); 79using Bitmap image = new(10, 10);
System\Windows\Forms\DrawTreeNodeEventArgsTests.cs (2)
24using Bitmap image = new(10, 10); 38using Bitmap image = new(10, 10);
System\Windows\Forms\ErrorProviderTests.cs (3)
537yield return new object[] { Icon.FromHandle(new Bitmap(10, 10).GetHicon()) }; 563provider.Icon = Icon.FromHandle(new Bitmap(10, 10).GetHicon()); 575provider.Icon = Icon.FromHandle(new Bitmap(10, 10).GetHicon());
System\Windows\Forms\GiveFeedbackEventArgsTests.cs (4)
27GiveFeedbackEventArgs e = new(DragDropEffects.None, false, new Bitmap(1, 1), new Point(0, 0), false) 44GiveFeedbackEventArgs e = new(DragDropEffects.None, false, new Bitmap(2, 2), new Point(0, 0), false) 53yield return new object[] { new Bitmap(1, 1) }; 74GiveFeedbackEventArgs e = new(DragDropEffects.None, false, new Bitmap(1, 1), new Point(0, 0), false)
System\Windows\Forms\GroupBoxTests.cs (6)
1851using Bitmap image = new(10, 10); 1889using Bitmap image = new(10, 10); 2089using Bitmap image = new(10, 10); 2127using Bitmap image = new(10, 10); 2190using Bitmap image = new(10, 10); 2235using Bitmap image = new(10, 10);
System\Windows\Forms\ImageList.ImageCollectionTests.cs (92)
52using Bitmap image1bppIndexed = new(1, 2, PixelFormat.Format24bppRgb); 53using Bitmap image24bppRGb = new(3, 4, PixelFormat.Format24bppRgb); 54using Bitmap image32bppRGb = new(5, 6, PixelFormat.Format32bppRgb); 55using Bitmap image32bppArgbNotTransparent = new(7, 8, PixelFormat.Format32bppArgb); 56using Bitmap image32bppArgbTransparent = new(9, 10, PixelFormat.Format32bppArgb); 100using Bitmap image1bppIndexed = new(1, 2, PixelFormat.Format24bppRgb); 101using Bitmap image24bppRGb = new(3, 4, PixelFormat.Format24bppRgb); 102using Bitmap image32bppRGb = new(5, 6, PixelFormat.Format32bppRgb); 103using Bitmap image32bppArgbNotTransparent = new(7, 8, PixelFormat.Format32bppArgb); 104using Bitmap image32bppArgbTransparent = new(9, 10, PixelFormat.Format32bppArgb); 188using Bitmap imageFiller1 = new(16, 16, pixelFormat); 189using Bitmap imageFiller2 = new(16, 16, pixelFormat); 191using Bitmap image = new(16, 16, pixelFormat); 233using Bitmap image = new(10, 10); 244yield return new object[] { transparentColor, new Bitmap(10, 10) }; 245yield return new object[] { transparentColor, new Bitmap(16, 16) }; 246yield return new object[] { transparentColor, new Bitmap(32, 32) }; 247yield return new object[] { transparentColor, new Bitmap(256, 256) }; 249Bitmap bitmap = new(16, 16); 253yield return new object[] { transparentColor, new Bitmap("bitmaps/10x16_one_entry_32bit.ico") }; 261using Bitmap image = new(10, 10); 282using Bitmap image = new(10, 10); 315using Bitmap image = new(10, 10); 325using Bitmap image = new(10, 10); 336using Bitmap image = new(10, 10); 352using Bitmap image1 = new(1, 2); 354using Bitmap image2 = new(3, 4); 384using Bitmap image1 = new(1, 2); 385using Bitmap image2 = new(3, 4); 424yield return new object[] { transparentColor, new Bitmap(10, 10) }; 425yield return new object[] { transparentColor, new Bitmap(16, 16) }; 426yield return new object[] { transparentColor, new Bitmap(32, 32) }; 427yield return new object[] { transparentColor, new Bitmap(256, 256) }; 429Bitmap bitmap = new(16, 16); 581yield return new object[] { listTransparentColor, new Bitmap(10, 10), transparentColor }; 582yield return new object[] { listTransparentColor, new Bitmap(16, 16), transparentColor }; 583yield return new object[] { listTransparentColor, new Bitmap(32, 32), transparentColor }; 584yield return new object[] { listTransparentColor, new Bitmap(256, 256), transparentColor }; 586Bitmap bitmap = new(16, 16); 893yield return new object[] { transparentColor, new Bitmap(16, 16), 1 }; 894yield return new object[] { transparentColor, new Bitmap(32, 16), 2 }; 895yield return new object[] { transparentColor, new Bitmap(256, 16), 16 }; 897Bitmap bitmap = new(16, 16); 954using Bitmap image = new(width, 16); 966using Bitmap image = new(16, width); 994using Bitmap image = new(10, 10); 1037using Bitmap image = new(10, 10); 1059yield return new object[] { new Bitmap(10, 10) }; 1085using Bitmap image1 = new(1, 2); 1086using Bitmap image2 = new(3, 4); 1087using Bitmap image3 = new(5, 6); 1157using Bitmap image1 = new(1, 2); 1159using Bitmap image2 = new(3, 4); 1194using Bitmap image1 = new(1, 2); 1196using Bitmap image2 = new(3, 4); 1241using Bitmap image1 = new(1, 2); 1242using Bitmap image2 = new(3, 4); 1243using Bitmap image3 = new(5, 6); 1273yield return new object[] { new Bitmap(10, 10) }; 1289yield return new object[] { new Bitmap(10, 10) }; 1306using Bitmap image1 = new(1, 2); 1308using Bitmap image2 = new(3, 4); 1310using Bitmap image3 = new(3, 4); 1340using Bitmap image1 = new(1, 2); 1342using Bitmap image2 = new(3, 4); 1344using Bitmap image3 = new(3, 4); 1393using Bitmap image = new(10, 10); 1404using Bitmap image1 = new(1, 2); 1406using Bitmap image2 = new(3, 4); 1408using Bitmap image3 = new(3, 4); 1444using Bitmap image1 = new(1, 2); 1446using Bitmap image2 = new(3, 4); 1448using Bitmap image3 = new(3, 4); 1496using Bitmap image1 = new(1, 2); 1498using Bitmap image2 = new(3, 4); 1500using Bitmap image3 = new(3, 4); 1545using Bitmap image1 = new(1, 2); 1546using Bitmap image2 = new(3, 4); 1566using Bitmap image1 = new(1, 2); 1567using Bitmap image2 = new(3, 4); 1599using Bitmap image = new(10, 10); 1634using Bitmap image = new(10, 10); 1655using Bitmap image = new(10, 10); 1681using Bitmap value = new(1, 2); 1690using Bitmap image = new(10, 10); 1695using Bitmap value = new(1, 2); 1709using Bitmap image = new(10, 10); 1720using Bitmap image = new(10, 10); 1731yield return new object[] { new Bitmap(10, 10) }; 1762yield return new object[] { new Bitmap(10, 10) }; 1797yield return new object[] { index, new Bitmap(10, 10) }; 1814yield return new object[] { new Bitmap(10, 10) };
System\Windows\Forms\ImageListTests.cs (32)
202list.Images.Add(new Bitmap(10, 10)); 396list.Images.Add(new Bitmap(10, 10)); 434list.Images.Add(new Bitmap(10, 10)); 463using Bitmap image = new(10, 10); 500Bitmap image = new(10, 10); 527Bitmap image = new(10, 10); 552Bitmap image = new(10, 10); 577Bitmap image = new(10, 10); 601Bitmap image = new(10, 10); 627list.Images.Add(new Bitmap(10, 10)); 646list.Images.Add(new Bitmap(10, 10)); 812list.Images.Add(new Bitmap(10, 10)); 833using Bitmap bitmap = new(10, 10); 854using Bitmap bitmap1 = new(10, 10); 855using Bitmap bitmap2 = new(10, 10); 889using Bitmap bitmap = new(10, 10); 929using Bitmap image = new(10, 10); 932using Bitmap sourceImage = new(10, 10); 943using Bitmap image = new(10, 10); 947using Bitmap sourceImage = new(10, 10); 958using Bitmap image = new(10, 10); 961using Bitmap sourceImage = new(10, 10); 972using Bitmap image = new(10, 10); 976using Bitmap sourceImage = new(10, 10); 996using Bitmap image = new(10, 10); 999using Bitmap sourceImage = new(10, 10); 1010using Bitmap image = new(10, 10); 1014using Bitmap sourceImage = new(10, 10); 1024using Bitmap image = new(10, 10); 1039using Bitmap sourceImage = new(10, 10); 1052using Bitmap image = new(10, 10); 1055using Bitmap sourceImage = new(10, 10);
System\Windows\Forms\LabelTests.cs (9)
506using Bitmap image1 = new(10, 10); 515using Bitmap image2 = new(50, 10); 544using Bitmap image = new(10, 10); 616using Bitmap bitmap1 = new(10, 10); 617using Bitmap bitmap2 = new(10, 10); 650using Bitmap bitmap1 = new(10, 10); 651using Bitmap bitmap2 = new(10, 10); 684using Bitmap image = new(10, 10); 710using Bitmap bitmap = new(10, 10);
System\Windows\Forms\ListBoxTests.cs (4)
505using Bitmap image1 = new(10, 10); 516using Bitmap image2 = new(10, 10); 5520Bitmap bitmap = new(10, 10); 5641using Bitmap bitmap = new(10, 10);
System\Windows\Forms\ListViewGroupTests.cs (3)
218groupImageList.Images.Add(new Bitmap(10, 10)); 219groupImageList.Images.Add(new Bitmap(20, 20)); 359groupImageList.Images.Add(value.Key, new Bitmap(10, 10));
System\Windows\Forms\ListViewTests.cs (3)
645BackgroundImage = new Bitmap(10, 10), 705BackgroundImage = new Bitmap(10, 10) 4295nonEmptyImageList.Images.Add(new Bitmap(10, 10));
System\Windows\Forms\MdiClientTests.cs (4)
180using Bitmap image = new(10, 10); 227using Bitmap image1 = new(10, 10); 238using Bitmap image2 = new(10, 10); 259using Bitmap image = new(10, 10);
System\Windows\Forms\MdiControlStripTests.cs (1)
331HICON hicon = (HICON)new Bitmap(256, 256).GetHicon();
System\Windows\Forms\MeasureItemEventArgsTests.cs (4)
15Bitmap image = new(10, 10); 36Bitmap image = new(10, 10); 61using Bitmap image = new(10, 10); 76using Bitmap image = new(10, 10);
System\Windows\Forms\MenuStripTests.cs (3)
443yield return new object[] { string.Empty, new Bitmap(10, 10), onClick }; 444yield return new object[] { "text", new Bitmap(10, 10), onClick }; 462yield return new object[] { new Bitmap(10, 10), onClick };
System\Windows\Forms\MonthCalendarTests.cs (2)
405using Bitmap image1 = new(10, 10); 416using Bitmap image2 = new(10, 10);
System\Windows\Forms\Ole\BinaryFormatUtilitiesTests.cs (2)
35using Bitmap image = new(10, 10); 56using Bitmap value = new(10, 10);
System\Windows\Forms\PaintEventArgsTests.cs (3)
24using Bitmap image = new(10, 10); 41using Bitmap image = new(10, 10); 53using Bitmap image = new(10, 10);
System\Windows\Forms\PictureBoxTests.cs (20)
335ErrorImage = new Bitmap(10, 10) 371ErrorImage = new Bitmap(10, 10) 388using Bitmap image = new(10, 10); 405using Bitmap image = new(10, 10); 551Image = new Bitmap(10, 10) 583Image = new Bitmap(10, 10) 598using Bitmap image = new(10, 10); 615using Bitmap image = new(10, 10); 652using Bitmap image = new(10, 10); 810yield return new object[] { new Bitmap(10, 10), new Bitmap(10, 10), value }; 811yield return new object[] { new Bitmap(10, 10), null, value }; 812yield return new object[] { null, new Bitmap(10, 10), value }; 1032InitialImage = new Bitmap(10, 10) 1068InitialImage = new Bitmap(10, 10) 1085using Bitmap image = new(10, 10); 1102using Bitmap image = new(10, 10); 1928using Bitmap image = new(10, 10); 2498using Bitmap image = new(10, 10); 2590Image = new Bitmap(10, 10)
System\Windows\Forms\ProgressBarRendererTest.cs (2)
68using Bitmap bitmap1 = new(100, 100); 69using Bitmap bitmap2 = new(100, 100);
System\Windows\Forms\ProgressBarTests.cs (2)
249Bitmap image1 = new(10, 10); 260Bitmap image2 = new(10, 10);
System\Windows\Forms\PropertyGrid.PropertyTabCollectionTests.cs (1)
81_bitmap = new Bitmap(1, 1);
System\Windows\Forms\PropertyGridTests.cs (3)
442using Bitmap image1 = new(10, 10); 453using Bitmap image2 = new(10, 10); 2380public override Bitmap Bitmap => new(10, 10);
System\Windows\Forms\RichTextBoxTests.ClipboardTests.cs (1)
23using Bitmap bitmap = new(100, 100);
System\Windows\Forms\RichTextBoxTests.cs (3)
770using Bitmap image1 = new(10, 10); 781using Bitmap image2 = new(10, 10); 10663using Bitmap bitmap1 = new(10, 10);
System\Windows\Forms\ScrollableControlTests.cs (45)
1512foreach (Image backgroundImage in new Image[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb), new Bitmap(10, 10, PixelFormat.Format32bppArgb) }) 1532using Bitmap image = new(10, 10); 1584foreach (Image backgroundImage in new Image[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb) }) 1598yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 1599yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 1600yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 1 }; 1601yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 1 }; 1602yield return new object[] { parentFactory(), hScroll, vScroll, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 1603yield return new object[] { parentFactory(), hScroll, vScroll, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 1605yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 1606yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 1607yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 2 }; 1608yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 2 }; 1609yield return new object[] { parentFactory(), hScroll, vScroll, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 1610yield return new object[] { parentFactory(), hScroll, vScroll, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 1628foreach (Image backgroundImage in new Image[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb) }) 1648yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 1649yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 1650yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, expected1 }; 1651yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, expected1 }; 1652yield return new object[] { parentFactory(), hScroll, vScroll, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 1653yield return new object[] { parentFactory(), hScroll, vScroll, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 1655yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected1 }; 1656yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected1 }; 1657yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected1 }; 1658yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected1 }; 1659yield return new object[] { parentFactory(), hScroll, vScroll, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected1 }; 1660yield return new object[] { parentFactory(), hScroll, vScroll, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected1 }; 1679using Bitmap image = new(10, 10); 1731using Bitmap image = new(10, 10); 1784foreach (Image backgroundImage in new Image[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb) }) 1798yield return new object[] { hScroll, vScroll, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 1799yield return new object[] { hScroll, vScroll, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 1800yield return new object[] { hScroll, vScroll, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 1 }; 1801yield return new object[] { hScroll, vScroll, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 1 }; 1802yield return new object[] { hScroll, vScroll, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 1803yield return new object[] { hScroll, vScroll, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 1805yield return new object[] { hScroll, vScroll, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 1806yield return new object[] { hScroll, vScroll, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 1807yield return new object[] { hScroll, vScroll, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 1808yield return new object[] { hScroll, vScroll, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 1809yield return new object[] { hScroll, vScroll, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 1810yield return new object[] { hScroll, vScroll, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 1819using Bitmap image = new(10, 10);
System\Windows\Forms\ScrollBarTests.cs (2)
277using Bitmap image1 = new(10, 10); 288using Bitmap image2 = new(10, 10);
System\Windows\Forms\SplitterTests.cs (2)
231using Bitmap image1 = new(10, 10); 242using Bitmap image2 = new(10, 10);
System\Windows\Forms\StatusStripTests.cs (4)
877yield return new object[] { string.Empty, new Bitmap(10, 10), onClick }; 878yield return new object[] { "text", new Bitmap(10, 10), onClick }; 879yield return new object[] { "-", new Bitmap(10, 10), onClick }; 1212using Bitmap image = new(10, 10);
System\Windows\Forms\TabControlTests.cs (6)
649using Bitmap image1 = new(10, 10); 660using Bitmap image2 = new(10, 10); 1267using Bitmap image1 = new(10, 10); 1268using Bitmap image2 = new(10, 10); 1269using Bitmap image3 = new(10, 10); 4222Bitmap bitmap = new(10, 10);
System\Windows\Forms\TableLayoutCellPaintEventArgsTests.cs (1)
25using Bitmap image = new(10, 10);
System\Windows\Forms\TableLayoutPanelTests.cs (3)
1210Bitmap image = new(10, 10); 1431using Bitmap image = new(10, 10); 1471using Bitmap image = new(10, 10);
System\Windows\Forms\TabPageTests.cs (32)
3960foreach (Image backgroundImage in new Image[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb), new Bitmap(10, 10, PixelFormat.Format32bppArgb) }) 3978using Bitmap image = new(10, 10); 4014foreach (Image backgroundImage in new Image[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb) }) 4027yield return new object[] { appearance, useVisualStyleBackColor, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 4028yield return new object[] { appearance, useVisualStyleBackColor, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 4029yield return new object[] { appearance, useVisualStyleBackColor, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 1 }; 4030yield return new object[] { appearance, useVisualStyleBackColor, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 1 }; 4031yield return new object[] { appearance, useVisualStyleBackColor, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 4032yield return new object[] { appearance, useVisualStyleBackColor, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 4034yield return new object[] { appearance, useVisualStyleBackColor, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4035yield return new object[] { appearance, useVisualStyleBackColor, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4036yield return new object[] { appearance, useVisualStyleBackColor, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4037yield return new object[] { appearance, useVisualStyleBackColor, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4038yield return new object[] { appearance, useVisualStyleBackColor, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4039yield return new object[] { appearance, useVisualStyleBackColor, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4048using Bitmap image = new(10, 10); 4104using Bitmap image = new(10, 10); 4153foreach (Image backgroundImage in new Image[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb) }) 4166yield return new object[] { appearance, useVisualStyleBackColor, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 4167yield return new object[] { appearance, useVisualStyleBackColor, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 4168yield return new object[] { appearance, useVisualStyleBackColor, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 1 }; 4169yield return new object[] { appearance, useVisualStyleBackColor, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 1 }; 4170yield return new object[] { appearance, useVisualStyleBackColor, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 4171yield return new object[] { appearance, useVisualStyleBackColor, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 4173yield return new object[] { appearance, useVisualStyleBackColor, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4174yield return new object[] { appearance, useVisualStyleBackColor, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4175yield return new object[] { appearance, useVisualStyleBackColor, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4176yield return new object[] { appearance, useVisualStyleBackColor, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4177yield return new object[] { appearance, useVisualStyleBackColor, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4178yield return new object[] { appearance, useVisualStyleBackColor, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4187using Bitmap image = new(10, 10);
System\Windows\Forms\TextRendererTests.cs (16)
37using Bitmap image = new(10, 10); 71using Bitmap image = new(10, 10); 108using Bitmap image = new(10, 10); 149using Bitmap image = new(10, 10); 181using Bitmap image = new(10, 10); 217using Bitmap image = new(10, 10); 257using Bitmap image = new(10, 10); 301using Bitmap image = new(10, 10); 313using Bitmap image = new(10, 10); 474using Bitmap image = new(10, 10); 489using Bitmap image = new(10, 10); 504using Bitmap image = new(10, 10); 519using Bitmap image = new(10, 10); 538using Bitmap image = new(10, 10); 727using Bitmap image = new(200, 50); 804using Bitmap image = new(200, 50);
System\Windows\Forms\ToolStripArrowRenderEventArgsTests.cs (4)
21Bitmap image = new(10, 10); 51using Bitmap image = new(10, 10); 71using Bitmap image = new(10, 10); 86using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripButtonTests.cs (9)
180yield return new object[] { new Bitmap(10, 10) }; 269yield return new object[] { text, new Bitmap(10, 10) }; 359yield return new object[] { string.Empty, new Bitmap(10, 10), onClick }; 360yield return new object[] { "text", new Bitmap(10, 10), onClick }; 457yield return new object[] { string.Empty, new Bitmap(10, 10), onClick, string.Empty, string.Empty }; 458yield return new object[] { "text", new Bitmap(10, 10), onClick, "name", "name" }; 1266using Bitmap image = new(10, 10); 1357using Bitmap image = new(10, 10); 1450Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripComboBox.ToolStripComboBoxControl.ToolStripComboBoxFlatComboAdapterTests.cs (1)
75using Bitmap bitmap = new(100, 100);
System\Windows\Forms\ToolStripComboBoxTests.cs (1)
142using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripContentPanelRenderEventArgsTests.cs (3)
14Bitmap image = new(10, 10); 32using Bitmap image = new(10, 10); 46using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripContentPanelTests.cs (1)
1855using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripControlHostTests.cs (11)
30BackgroundImage = new Bitmap(10, 10), 401yield return new object[] { new Bitmap(10, 10) }; 433using Bitmap value = new(10, 10); 560using Bitmap backgroundImage = new(10, 10); 854foreach (Image image in new Image[] { null, new Bitmap(10, 10) }) 1212yield return new object[] { imageTransparentColor, new Bitmap(10, 10) }; 1338yield return new object[] { new Bitmap(10, 10), color }; 1370foreach (Image image in new Image[] { null, new Bitmap(10, 10) }) 2396foreach (Image image in new Image[] { null, new Bitmap(10, 10) }) 3041foreach (Image image in new Image[] { null, new Bitmap(10, 10) }) 4110using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripDropDownItemTests.cs (6)
101yield return new object[] { string.Empty, new Bitmap(10, 10), onClick }; 102yield return new object[] { "text", new Bitmap(10, 10), onClick }; 200yield return new object[] { string.Empty, new Bitmap(10, 10), onClick, string.Empty, string.Empty }; 201yield return new object[] { "text", new Bitmap(10, 10), onClick, "name", "name" }; 297yield return new object[] { string.Empty, new Bitmap(10, 10), Array.Empty<ToolStripItem>(), Array.Empty<ToolStripItem>() }; 300yield return new object[] { "text", new Bitmap(10, 10), items, items };
System\Windows\Forms\ToolStripDropDownTests.cs (5)
825using Bitmap image1 = new(10, 10); 836using Bitmap image2 = new(10, 10); 2955yield return new object[] { string.Empty, new Bitmap(10, 10), onClick }; 2956yield return new object[] { "text", new Bitmap(10, 10), onClick }; 2974yield return new object[] { new Bitmap(10, 10), onClick };
System\Windows\Forms\ToolStripGripRenderEventArgsTests.cs (2)
14Bitmap image = new(10, 10); 31Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripItemCollectionTests.cs (2)
362using Bitmap image = new(10, 10); 376using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripItemImageRenderEventArgsTests.cs (6)
14Bitmap image = new(10, 10); 31Bitmap image = new(10, 10); 76using Bitmap image = new(10, 10); 94yield return new object[] { new ToolStripButton(), new Bitmap(10, 10), new Rectangle(1, 2, 3, 4) }; 95yield return new object[] { new ToolStripButton() { Image = new Bitmap(10, 10) }, new Bitmap(10, 10), new Rectangle(1, 2, 3, 4) };
System\Windows\Forms\ToolStripItemRenderEventArgsTests.cs (2)
14Bitmap image = new(10, 10); 31Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripItemTests.cs (56)
100yield return new object[] { string.Empty, new Bitmap(10, 10), onClick }; 101yield return new object[] { "text", new Bitmap(10, 10), onClick }; 195yield return new object[] { string.Empty, new Bitmap(10, 10), onClick, string.Empty, string.Empty }; 196yield return new object[] { "text", new Bitmap(10, 10), onClick, "name", "name" }; 1292foreach (Image image in new Image[] { null, new Bitmap(10, 10) }) 1770yield return new object[] { new Bitmap(10, 10) }; 1866yield return new object[] { new Bitmap(10, 10), 1 }; 2512foreach (Image image in new Image[] { null, new Bitmap(10, 10) }) 2846foreach (Image image in new Image[] { null, new Bitmap(10, 10) }) 3695using Bitmap image = new(10, 10); 3716using Bitmap image = new(10, 10); 3763using Bitmap image = new(10, 10); 3786yield return new object[] { imageTransparentColor, new Bitmap(10, 10) }; 3816yield return new object[] { imageTransparentColor, new Bitmap(10, 10), -1 }; 3846using Bitmap oldValue = new(10, 10); 3867using Bitmap oldValue = new(10, 10); 3890yield return new object[] { imageTransparentColor, new Bitmap(10, 10), 1 }; 4089using Bitmap image = new(10, 10); 4103using Bitmap image = new(10, 10); 4117using Bitmap otherImage = new(10, 10); 4134using Bitmap image = new(10, 10); 4148using Bitmap image = new(10, 10); 4162using Bitmap otherImage = new(10, 10); 4408using Bitmap image = new(10, 10); 4500using Bitmap image = new(10, 10); 4643using Bitmap image = new(10, 10); 4760using Bitmap image = new(10, 10); 4785using Bitmap image = new(10, 10); 4839using Bitmap image = new(10, 10); 4863using Bitmap image = new(10, 10); 4916using Bitmap image = new(10, 10); 5002using Bitmap image = new(10, 10); 5139using Bitmap image = new(10, 10); 5253using Bitmap image = new(10, 10); 5284using Bitmap image = new(10, 10); 5345using Bitmap image = new(10, 10); 5376using Bitmap image = new(10, 10); 5604yield return new object[] { new Bitmap(10, 10), color }; 5670yield return new object[] { new Bitmap(10, 10), Color.Empty, 0 }; 5671yield return new object[] { new Bitmap(10, 10), Color.Red, 1 }; 5737yield return new object[] { new Bitmap(10, 10), Color.Empty, 0 }; 5738yield return new object[] { new Bitmap(10, 10), Color.Red, 1 }; 6949foreach (Image image in new Image[] { null, new Bitmap(10, 10) }) 9342foreach (Image image in new Image[] { null, new Bitmap(10, 10) }) 9876using Bitmap image = new(10, 10); 9912using Bitmap image = new(10, 10); 9954using Bitmap image = new(10, 10); 10027using Bitmap image = new(10, 10); 10065using Bitmap image = new(10, 10); 10109using Bitmap image = new(10, 10); 11098foreach (Image image in new Image[] { null, new Bitmap(10, 10) }) 12525foreach (Image image in new Image[] { null, new Bitmap(10, 10) }) 13191foreach (Image image in new Image[] { null, new Bitmap(10, 10) }) 14170item.Image = new Bitmap(10, 10); 14822foreach (Image image in new Image[] { null, new Bitmap(10, 10) }) 15004foreach (Image image in new Image[] { null, new Bitmap(10, 10) })
System\Windows\Forms\ToolStripItemTextRenderEventArgsTests.cs (4)
23using Bitmap image = new(10, 10); 49using Bitmap image = new(10, 10); 66using Bitmap image = new(10, 10); 82using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripLabelTests.cs (4)
38using Bitmap image = new(10, 10); 50using Bitmap image = new(10, 10); 63using Bitmap image = new(10, 10); 77using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripMenuItemTests.cs (8)
190using Bitmap image = new(10, 10); 205using Bitmap image = new(10, 10); 223using Bitmap image = new(10, 10); 241using Bitmap image = new(10, 10); 276BackgroundImage = new Bitmap(10, 10), 287Image = new Bitmap(10, 10), 363accessor.t_indeterminateCheckedImage = new Bitmap(10, 10); 364accessor.t_checkedImage = new Bitmap(10, 10);
System\Windows\Forms\ToolStripPanelRenderEventArgsTests.cs (3)
14Bitmap image = new(10, 10); 32using Bitmap image = new(10, 10); 46using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripRendererTests.cs (17)
16using Bitmap image = new(10, 11); 46using Bitmap image = new(10, 10); 81Bitmap image = new(10, 10); 138Bitmap image = new(10, 10); 193Bitmap image = new(10, 10); 195yield return new object[] { graphics, new SubToolStripItem(), new Bitmap(10, 10), new Rectangle(1, 2, 3, 4) }; 196yield return new object[] { graphics, new SubToolStripItem { Enabled = false }, new Bitmap(10, 10), new Rectangle(1, 2, 3, 4) }; 200yield return new object[] { graphics, new SubToolStripItem { ImageScaling = imageScaling }, new Bitmap(10, 10), new Rectangle(1, 2, 3, 4) }; 314using Bitmap image = new(10, 10); 421Bitmap image = new(10, 10); 487using Bitmap image = new(10, 10); 522Bitmap image = new(10, 10); 604Bitmap image = new(10, 10); 661Bitmap image = new(10, 10); 726using Bitmap image = new(10, 10); 843using Bitmap image = new(10, 10); 920using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripRenderEventArgsTests.cs (4)
14Bitmap image = new(10, 10); 41using Bitmap image = new(10, 10); 65using Bitmap image = new(10, 10); 94using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripSeparatorRenderEventArgsTests.cs (2)
14Bitmap image = new(10, 10); 31Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripSeparatorTests.cs (7)
115yield return new object[] { new Bitmap(10, 10) }; 246foreach (Image image in new Image[] { null, new Bitmap(10, 10) }) 422yield return new object[] { imageTransparentColor, new Bitmap(10, 10) }; 532yield return new object[] { new Bitmap(10, 10), color }; 1119Bitmap image = new(10, 10); 1213using Bitmap image = new(10, 10); 1284using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripSplitButtonTests.cs (5)
97using Bitmap image = new(10, 10); 108using Bitmap image = new(10, 10); 122using Bitmap image = new(10, 10); 139using Bitmap image = new(10, 10); 154using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripStatusLabelTests.cs (4)
34using Bitmap sampleImage = new(10, 10); 44using Bitmap sampleImage = new(10, 10); 54using Bitmap sampleImage = new(10, 10); 72using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripTests.cs (50)
4273yield return new object[] { string.Empty, new Bitmap(10, 10), onClick }; 4274yield return new object[] { "text", new Bitmap(10, 10), onClick }; 4292yield return new object[] { new Bitmap(10, 10), onClick }; 5853foreach (Image backgroundImage in new Image[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb), new Bitmap(10, 10, PixelFormat.Format32bppArgb) }) 5873using Bitmap image = new(10, 10); 5926foreach (Image backgroundImage in new Image[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb) }) 5940yield return new object[] { parent, hScroll, vScroll, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 5941yield return new object[] { parent, hScroll, vScroll, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 5942yield return new object[] { parent, hScroll, vScroll, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 1 }; 5943yield return new object[] { parent, hScroll, vScroll, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 1 }; 5944yield return new object[] { parent, hScroll, vScroll, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 5945yield return new object[] { parent, hScroll, vScroll, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 5947yield return new object[] { parent, hScroll, vScroll, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 5948yield return new object[] { parent, hScroll, vScroll, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 5949yield return new object[] { parent, hScroll, vScroll, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 2 }; 5950yield return new object[] { parent, hScroll, vScroll, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 2 }; 5951yield return new object[] { parent, hScroll, vScroll, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 5952yield return new object[] { parent, hScroll, vScroll, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 5978foreach (Image backgroundImage in new Image[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb) }) 5998yield return new object[] { parent, hScroll, vScroll, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, expected1 }; 5999yield return new object[] { parent, hScroll, vScroll, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, expected1 }; 6000yield return new object[] { parent, hScroll, vScroll, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, expected1 }; 6001yield return new object[] { parent, hScroll, vScroll, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, expected1 }; 6002yield return new object[] { parent, hScroll, vScroll, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, expected2 }; 6003yield return new object[] { parent, hScroll, vScroll, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, expected2 }; 6005yield return new object[] { parent, hScroll, vScroll, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected2 }; 6006yield return new object[] { parent, hScroll, vScroll, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected2 }; 6007yield return new object[] { parent, hScroll, vScroll, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected2 }; 6008yield return new object[] { parent, hScroll, vScroll, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected2 }; 6009yield return new object[] { parent, hScroll, vScroll, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected2 }; 6010yield return new object[] { parent, hScroll, vScroll, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected2 }; 6020using Bitmap image = new(10, 10); 6071using Bitmap image = new(10, 10); 6124foreach (Image backgroundImage in new Image[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb) }) 6137yield return new object[] { hScroll, vScroll, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 6138yield return new object[] { hScroll, vScroll, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 6139yield return new object[] { hScroll, vScroll, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 1 }; 6140yield return new object[] { hScroll, vScroll, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 1 }; 6141yield return new object[] { hScroll, vScroll, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 6142yield return new object[] { hScroll, vScroll, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 6144yield return new object[] { hScroll, vScroll, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 6145yield return new object[] { hScroll, vScroll, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 6146yield return new object[] { hScroll, vScroll, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 6147yield return new object[] { hScroll, vScroll, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 6148yield return new object[] { hScroll, vScroll, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 6149yield return new object[] { hScroll, vScroll, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 6158using Bitmap image = new(10, 10); 6233using Bitmap image = new(10, 10); 6262using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripTextBoxTests.cs (1)
57using Image image = new Bitmap(width, height);
System\Windows\Forms\TrackBarRendererTests.cs (1)
16_bitmap = new(100, 100);
System\Windows\Forms\TreeNodeTests.cs (51)
1002using Bitmap image = new(10, 10); 1041using Bitmap image = new(10, 10); 1075using Bitmap image = new(10, 10); 1106using Bitmap image = new(10, 10); 1121using Bitmap image1 = new(10, 10); 1122using Bitmap image2 = new(10, 10); 1188using Bitmap image = new(10, 10); 1255using Bitmap image1 = new(10, 10); 1256using Bitmap image2 = new(10, 10); 1412using Bitmap image1 = new(10, 10); 1413using Bitmap image2 = new(10, 10); 1502using Bitmap image1 = new(10, 10); 1503using Bitmap image2 = new(10, 10); 1532using Bitmap image1 = new(10, 10); 1533using Bitmap image2 = new(10, 10); 2984using Bitmap image = new(10, 10); 3023using Bitmap image = new(10, 10); 3057using Bitmap image = new(10, 10); 3088using Bitmap image = new(10, 10); 3103using Bitmap image1 = new(10, 10); 3104using Bitmap image2 = new(10, 10); 3170using Bitmap image = new(10, 10); 3210using Bitmap image1 = new(10, 10); 3211using Bitmap image2 = new(10, 10); 3239using Bitmap image1 = new(10, 10); 3240using Bitmap image2 = new(10, 10); 3396using Bitmap image1 = new(10, 10); 3397using Bitmap image2 = new(10, 10); 3486using Bitmap image1 = new(10, 10); 3487using Bitmap image2 = new(10, 10); 3516using Bitmap image1 = new(10, 10); 3517using Bitmap image2 = new(10, 10); 3607using Bitmap image = new(10, 10); 3650using Bitmap image = new(10, 10); 3699using Bitmap image = new(10, 10); 3731using Bitmap image = new(10, 10); 3754using Bitmap image1 = new(10, 10); 3755using Bitmap image2 = new(10, 10); 3875using Bitmap image1 = new(10, 10); 3876using Bitmap image2 = new(10, 10); 3905using Bitmap image1 = new(10, 10); 3906using Bitmap image2 = new(10, 10); 3968using Bitmap image = new(10, 10); 4144using Bitmap image1 = new(10, 10); 4145using Bitmap image2 = new(10, 10); 4245using Bitmap image1 = new(10, 10); 4246using Bitmap image2 = new(10, 10); 4283using Bitmap image1 = new(10, 10); 4284using Bitmap image2 = new(10, 10); 4443using Bitmap image1 = new(10, 10); 4444using Bitmap image2 = new(10, 10);
System\Windows\Forms\TreeViewImageIndexConverterTests.cs (2)
81using Bitmap image1 = new(10, 10); 82using Bitmap image2 = new(10, 10);
System\Windows\Forms\TreeViewTests.cs (30)
822using Bitmap image1 = new(10, 10); 833using Bitmap image2 = new(10, 10); 2104imageList.Images.Add(new Bitmap(10, 10)); 2105imageList.Images.Add(new Bitmap(10, 10)); 2128imageList.Images.Add(new Bitmap(10, 10)); 2129imageList.Images.Add("imageKey", new Bitmap(10, 10)); 2196imageList.Images.Add(new Bitmap(10, 10)); 2197imageList.Images.Add(new Bitmap(10, 10)); 2312imageList.Images.Add(new Bitmap(10, 10)); 2313imageList.Images.Add("imageKey", new Bitmap(10, 10)); 2338imageList.Images.Add(new Bitmap(10, 10)); 2339imageList.Images.Add("imageKey", new Bitmap(10, 10)); 2399imageList.Images.Add(new Bitmap(10, 10)); 2400imageList.Images.Add("imageKey", new Bitmap(10, 10)); 2423imageList.Images.Add(new Bitmap(10, 10)); 3464imageList.Images.Add(new Bitmap(10, 10)); 3465imageList.Images.Add(new Bitmap(10, 10)); 3488imageList.Images.Add(new Bitmap(10, 10)); 3489imageList.Images.Add("imageKey", new Bitmap(10, 10)); 3556imageList.Images.Add(new Bitmap(10, 10)); 3557imageList.Images.Add(new Bitmap(10, 10)); 3662imageList.Images.Add(new Bitmap(10, 10)); 3663imageList.Images.Add("imageKey", new Bitmap(10, 10)); 3688imageList.Images.Add(new Bitmap(10, 10)); 3689imageList.Images.Add("imageKey", new Bitmap(10, 10)); 3749imageList.Images.Add(new Bitmap(10, 10)); 3750imageList.Images.Add("imageKey", new Bitmap(10, 10)); 5668Bitmap image = new(10, 10); 6006yield return new object[] { new Image[] { new Bitmap(10, 10) }, null, true }; 6008yield return new object[] { new Image[] { new Bitmap(10, 10) }, new EventArgs(), true };
System\Windows\Forms\UpDownBaseTests.cs (4)
634using Bitmap image1 = new(10, 10); 645using Bitmap image2 = new(10, 10); 2247using Bitmap image = new(10, 10); 2283using Bitmap image = new(10, 10);
System\Windows\Forms\UserControlTests.cs (2)
1096using Bitmap backgroundImage = new(10, 10); 1194using Bitmap backgroundImage = new(10, 10);
System\Windows\Forms\VisualStyles\VisualStyleRendererTests.cs (25)
138using Bitmap bitmap = new(10, 10); 172using Bitmap bitmap = new(10, 10); 207using Bitmap bitmap = new(10, 10); 225using Bitmap bitmap = new(10, 10); 235using Bitmap bitmap = new(10, 10); 245using Bitmap bitmap = new(10, 10); 269using Bitmap bitmap = new(10, 10); 271using Bitmap image = new(10, 10); 282using Bitmap bitmap = new(10, 10); 284using Bitmap image = new(10, 10); 295using Bitmap image = new(10, 10); 305using Bitmap image = new(10, 10); 306using Bitmap bitmap = new(10, 10); 315using Bitmap image = new(10, 10); 316using Bitmap bitmap = new(10, 10); 327using Bitmap bitmap = new(10, 10); 329using Bitmap image = new(10, 10); 354using Bitmap bitmap = new(10, 10); 381using Bitmap bitmap = new(10, 10); 420using Bitmap bitmap = new(10, 10); 451using Bitmap bitmap = new(10, 10); 482using Bitmap bitmap = new(10, 10); 492using Bitmap image = new(10, 10); 573using Bitmap image = new(10, 10); 585using Bitmap image = new(10, 10);
TextBoxBaseTests.cs (2)
472using Bitmap image1 = new(10, 10); 483using Bitmap image2 = new(10, 10);
ToolStripContainerTests.cs (3)
74using Image value = new Bitmap(10, 10); 87_toolStripContainer.BackgroundImage = new Bitmap(10, 10); 92_toolStripContainer.BackgroundImage = new Bitmap(20, 20);
TrackBarTests.cs (3)
467using Bitmap image1 = new(10, 10); 478using Bitmap image2 = new(10, 10); 3245using Bitmap bitmap = new(bitmapWidth, bitmapHeight);
WebBrowserBaseTests.cs (5)
674using Bitmap bitmap = new(20, 20); 696using Bitmap bitmap = new(20, 20); 725using Bitmap bitmap = new(10, 10); 739using Bitmap bitmap = new(10, 10); 753using Bitmap bitmap = new(10, 10);
System.Windows.Forms.TestUtilities (2)
CommonTestHelperEx.cs (2)
38new Bitmap(10, 10), 111Bitmap image = new(10, 10);
System.Windows.Forms.UI.IntegrationTests (5)
DragDropTests.cs (3)
23private readonly Bitmap _dragImage = new("./Resources/move.bmp"); 949private readonly Bitmap _dragImage = new("./Resources/image.png"); 950private readonly Bitmap _dragAcceptBmp = new("./Resources/DragAccept.bmp");
Infra\ScreenshotService.cs (1)
62Bitmap bitmap = new(width, height, PixelFormat.Format32bppArgb);
PropertyGridTests.cs (1)
181using Image newImage = new Bitmap(100, 100);
WindowsFormsIntegration (4)
System\Windows\Integration\HostUtils.cs (4)
179SD.Bitmap bitmap = new SD.Bitmap(control.ClientRectangle.Width, control.ClientRectangle.Height); 197SD.Bitmap returnBitmap = new SD.Bitmap(childElementHost.ClientRectangle.Width, childElementHost.ClientRectangle.Height); 281return new SD.Bitmap(1, 1); 298SD.Bitmap chunk = new System.Drawing.Bitmap(width, height, graphicsTemplate);
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]));
2213 references to Bitmap
Microsoft.VisualBasic.Tests (1)
Microsoft\VisualBasic\MyServices\ClipboardProxyTests.cs (1)
72using Bitmap image = new(2, 2);
PresentationFramework-SystemDrawing (9)
SystemDrawingExtension.cs (9)
25return data is Bitmap; 71Bitmap bitmapData = GetBitmapImpl(data); 90Bitmap bitmap = data as Bitmap; 104Bitmap bmp = new Bitmap(bitmapwidth, bitmapheight); 116Bitmap img = new Bitmap(stream); 131private static Bitmap GetBitmapImpl(object data) 151return data as Bitmap; 163Bitmap bitmapFinal = new Bitmap(
PresentationUI (20)
artifacts\obj\PresentationUI\x86\Debug\net10.0\MS.Internal.Documents.Resources.cs (20)
74internal static System.Drawing.Bitmap Invalid_35x35 { 77return ((System.Drawing.Bitmap)(obj)); 84internal static System.Drawing.Bitmap Invalid_48x48 { 87return ((System.Drawing.Bitmap)(obj)); 94internal static System.Drawing.Bitmap NotSigned_35x35 { 97return ((System.Drawing.Bitmap)(obj)); 104internal static System.Drawing.Bitmap NotSigned_48x48 { 107return ((System.Drawing.Bitmap)(obj)); 144internal static System.Drawing.Bitmap Undetermined_35x35 { 147return ((System.Drawing.Bitmap)(obj)); 154internal static System.Drawing.Bitmap Undetermined_48x48 { 157return ((System.Drawing.Bitmap)(obj)); 164internal static System.Drawing.Bitmap Unverifiable_35x35 { 167return ((System.Drawing.Bitmap)(obj)); 174internal static System.Drawing.Bitmap Unverifiable_48x48 { 177return ((System.Drawing.Bitmap)(obj)); 184internal static System.Drawing.Bitmap Valid_35x35 { 187return ((System.Drawing.Bitmap)(obj)); 194internal static System.Drawing.Bitmap Valid_48x48 { 197return ((System.Drawing.Bitmap)(obj));
System.Drawing (1)
System.Drawing.cs (1)
4[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.Bitmap))]
System.Drawing.Common.Tests (903)
DrawingTest.cs (1)
12protected static unsafe void ValidateBitmapContent(Bitmap bitmap, params byte[] expectedHash)
Helpers.cs (3)
30public static void VerifyBitmap(Bitmap bitmap, Color[][] colors) 47private static EqualException GetBitmapEqualFailureException(Bitmap bitmap, Color[][] colors, int firstFailureX, int firstFailureY) 114public static void VerifyBitmapNotBlank(Bitmap bmp)
mono\System.Drawing.Imaging\BmpCodecTests.cs (12)
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); 429Bitmap bmp = new(100, 100, original); 443using Bitmap bmpLoad = new(sOutFile); 494using Bitmap bmp = new(sInFile);
mono\System.Drawing.Imaging\GifCodecTests.cs (6)
41using Bitmap bmp = new(filename); 72using Bitmap bmp = new(filename); 108using Bitmap bmp = new(sInFile); 167using Bitmap bmp = new(sInFile); 183Bitmap bmp = new(100, 100, original); 197using Bitmap bmpLoad = new(sOutFile);
mono\System.Drawing.Imaging\IconCodecTests.cs (24)
48using Bitmap bmp = new(image); 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); 1867Bitmap bmp = new(100, 100, original); 1883using Bitmap bmpLoad = new(sOutFile);
mono\System.Drawing.Imaging\JpegCodecTests.cs (8)
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); 348Bitmap bmp = new(100, 100, original); 362using Bitmap bmpLoad = new(sOutFile);
mono\System.Drawing.Imaging\PngCodecTests.cs (11)
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); 569Bitmap bmp = new(100, 100, original); 583using Bitmap bmpLoad = new(sOutFile);
mono\System.Drawing.Imaging\TiffCodecTests.cs (6)
43using Bitmap bmp = new(sInFile); 65using Bitmap bmp = new(sInFile); 74using Bitmap bmp = new(sInFile); 118using Bitmap bmp = new(sInFile); 240Bitmap bmp = new(100, 100, original); 254using Bitmap bmpLoad = new(sOutFile);
mono\System.Drawing\BitmapTests.cs (63)
48Bitmap bmp = new(100, 100, PixelFormat.Format32bppRgb); 62using Bitmap bmp = new(100, 100, PixelFormat.Format8bppIndexed); 71using Bitmap bmp = new(100, 100, PixelFormat.Format32bppRgb); 89using Bitmap bmp = new(10, 10, PixelFormat.Format24bppRgb); 109using Bitmap bmp = new(10, 10, PixelFormat.Format24bppRgb); 125using Bitmap bmp = new(1, 1, PixelFormat.Format1bppIndexed); 134using Bitmap bmp = new(1, 1, PixelFormat.Format4bppIndexed); 143using Bitmap bmp = new(1, 1, PixelFormat.Format8bppIndexed); 153using Bitmap bmp = new(2, 1, format); 320using Bitmap bmp = new(sInFile); 321using Bitmap bmpNew = bmp.Clone(rect, PixelFormat.Format32bppArgb); 335using Bitmap bmp = new(sInFile); 336using Bitmap bmpNew = (Bitmap)bmp.Clone(); 346using Bitmap bmp = new(sInFile); 368public static string RotateBmp(Bitmap src, RotateFlipType rotate) 375using Bitmap bmp_rotate = src.Clone(new RectangleF(0, 0, width, height), PixelFormat.Format32bppArgb); 393public static string RotateIndexedBmp(Bitmap src, RotateFlipType type) 403using Bitmap test = src.Clone() as Bitmap; 444using Bitmap bmp = new(sInFile); 454private static Bitmap CreateBitmap(int width, int height, PixelFormat fmt) 456Bitmap bmp = new(width, height, fmt); 480private static byte[] HashPixels(Bitmap bmp) 500private static byte[] HashLock(Bitmap bmp, int width, int height, PixelFormat fmt, ImageLockMode mode) 557using Bitmap bmp = CreateBitmap(100, 100, PixelFormat.Format32bppArgb); 571using Bitmap bmp = CreateBitmap(100, 100, PixelFormat.Format32bppArgb); 584using Bitmap bmp = CreateBitmap(100, 100, PixelFormat.Format32bppArgb); 597using Bitmap bmp = CreateBitmap(100, 100, PixelFormat.Format32bppArgb); 613using Bitmap bmp = CreateBitmap(100, 100, PixelFormat.Format32bppArgb); 626using Bitmap bmp = CreateBitmap(100, 100, PixelFormat.Format32bppArgb); 639using Bitmap bmp = CreateBitmap(100, 100, PixelFormat.Format32bppArgb); 652using Bitmap bmp = CreateBitmap(100, 100, PixelFormat.Format32bppArgb); 674using (Bitmap bmp = new(1, 1, PixelFormat.Format32bppRgb)) 729using (Bitmap bmp = new(1, 1, PixelFormat.Format32bppArgb)) 773using Bitmap bmp = new(20, 20); 781using (Bitmap bmp = new(20, 20)) 786using (Bitmap other = new(filename)) 797Bitmap bmp = new(184, 184, PixelFormat.Format1bppIndexed); 819using Bitmap bmp = new(1, 1, PixelFormat.Format1bppIndexed); 853using Bitmap bmp = new(1, 1, PixelFormat.Format4bppIndexed); 1127using Bitmap bmp = new(1, 1, PixelFormat.Format8bppIndexed); 1139public void XmlSerialization() => new XmlSerializer(typeof(Bitmap)); 1143using Bitmap bmp = new(1, 1); 1174private static void HiconTest(string msg, Bitmap b, int size) 1194using Bitmap bitmap = Bitmap.FromHicon(icon.Handle); 1199using Bitmap bitmap2 = Bitmap.FromHicon(hicon); 1212using Bitmap bitmap = Bitmap.FromHicon(icon.Handle); 1217using Bitmap bitmap2 = Bitmap.FromHicon(hicon); 1230using Bitmap bitmap = Bitmap.FromHicon(icon.Handle); 1235using Bitmap bitmap2 = Bitmap.FromHicon(hicon); 1248using Bitmap bitmap = Bitmap.FromHicon(icon.Handle); 1253using Bitmap bitmap2 = Bitmap.FromHicon(hicon); 1263using (Bitmap bitmap = new(sInFile)) 1289using (Bitmap bitmap = new(sInFile))
mono\System.Drawing\GraphicsTests.cs (141)
60private static bool IsEmptyBitmap(Bitmap bitmap, out int x, out int y) 78private static void CheckForEmptyBitmap(Bitmap bitmap) 84private static void CheckForNonEmptyBitmap(Bitmap bitmap) 103using Bitmap bmp = new(200, 200); 121using Bitmap bmp = new(200, 200); 150using Bitmap bmp = new(200, 200); 165using Bitmap bmp = new(200, 200); 176using Bitmap bmp = new(200, 200); 203using Bitmap bmp = new(200, 200); 220using Bitmap bmp = new(200, 200); 239using Bitmap bmp = new(200, 200); 280using Bitmap bmp = new(200, 200); 355private readonly Bitmap _bitmap; 713using Bitmap bitmap = new(20, 20); 727using Bitmap bitmap = new(20, 20); 737using Bitmap bitmap = new(20, 20); 747using Bitmap bitmap = new(20, 20); 759using Bitmap bitmap = new(20, 20); 771using Bitmap bitmap = new(20, 20); 779using Bitmap bitmap = new(20, 20); 787using Bitmap bitmap = new(20, 20); 798using Bitmap bitmap = new(20, 20); 809using Bitmap bitmap = new(20, 20); 820using Bitmap bitmap = new(20, 20); 832using Bitmap bitmap = new(20, 20); 847using Bitmap bitmap = new(20, 20); 869using Bitmap bitmap = new(20, 20); 884using Bitmap bitmap = new(20, 20); 950using Bitmap bitmap = new(20, 20); 983using Bitmap bitmap = new(20, 20); 1017using Bitmap bitmap = new(20, 20); 1049using Bitmap bitmap = new(20, 20); 1085using Bitmap bitmap = new(20, 20); 1093using Bitmap bitmap = new(20, 20); 1133using Bitmap bitmap = new(20, 20); 1141using Bitmap bitmap = new(20, 20); 1149using Bitmap bitmap = new(20, 20); 1157using Bitmap bitmap = new(20, 20); 1165using Bitmap bitmap = new(20, 20); 1173using Bitmap bitmap = new(20, 20); 1181using Bitmap bitmap = new(20, 20); 1189using Bitmap bitmap = new(20, 20); 1208private static Bitmap FillDrawRectangle(float width) 1210Bitmap bitmap = new(20, 20); 1234using Bitmap bitmap = FillDrawRectangle(float.MinValue); 1273using Bitmap bitmap = FillDrawRectangle(2.0f); 1320using Bitmap bitmap = FillDrawRectangle(3.0f); 1372private static Bitmap DrawFillRectangle(float width) 1374Bitmap bitmap = new(20, 20); 1399using Bitmap bitmap = DrawFillRectangle(float.MinValue); 1438using Bitmap bitmap = DrawFillRectangle(2.0f); 1478using Bitmap bitmap = DrawFillRectangle(3.0f); 1518private static Bitmap DrawLines(float width) 1520Bitmap bitmap = new(20, 20); 1543using Bitmap bitmap = DrawLines(float.MinValue); 1573using Bitmap bitmap = new(20, 20); 1594using Bitmap bitmap = new(20, 20); 1603using Bitmap bitmap = new(20, 20); 1620using Bitmap bitmap = new(20, 20); 1653using Bitmap bitmap = new(20, 20); 1684using Bitmap bitmap = new(20, 20); 1717using Bitmap bitmap = new(20, 20); 1748using Bitmap bitmap = new(20, 20); 1779using Bitmap bitmap = new(20, 20); 1802using Bitmap bitmap = new(20, 20); 1846using Bitmap bitmap = new(20, 20); 1869using Bitmap bitmap = new(20, 20); 1882using Bitmap bitmap = new(20, 20); 1895using Bitmap bitmap = new(20, 20); 1918using Bitmap bitmap = new(20, 20); 1962using Bitmap bitmap = new(20, 20); 1998using Bitmap bitmap = new(20, 20); 2083using Bitmap bitmap = new(20, 20); 2100using Bitmap bitmap = new(20, 20); 2117using Bitmap bitmap = new(20, 20); 2133using Bitmap b = new(10, 10); 2145using Bitmap b = new(10, 10); 2153using Bitmap b = new(10, 10); 2163using Bitmap b = new(10, 10); 2175using Bitmap b = new(10, 10); 2183using Bitmap b = new(10, 10); 2200using Bitmap bmp = new(100, 100); 2233using Bitmap bmp = new(100, 100); 2278using Bitmap bmp = new(100, 50); 2297using Bitmap bmp = new(100, 50); 2316using Bitmap bmp = new(100, 50); 2335using Bitmap bmp = new(40, 40); 2343using Bitmap bmp = new(40, 40); 2359using Bitmap bmp = new(40, 40); 2367using Bitmap bmp = new(40, 40); 2376using Bitmap bmp = new(40, 40); 2384using Bitmap bmp = new(40, 40); 2400using Bitmap bmp = new(40, 40); 2408using Bitmap bmp = new(40, 40); 2419using Bitmap bmp = new(40, 40); 2427using Bitmap bmp = new(40, 40); 2435using Bitmap bmp = new(40, 40); 2443using Bitmap bmp = new(40, 40); 2451using Bitmap bmp = new(40, 40); 2459using Bitmap bmp = new(40, 40); 2470using Bitmap bmp = new(40, 40); 2478using Bitmap bmp = new(40, 40); 2493using Bitmap bmp = new(40, 40); 2501using Bitmap bmp = new(40, 40); 2509using Bitmap bmp = new(40, 40); 2517using Bitmap bmp = new(40, 40); 2525using Bitmap bmp = new(40, 40); 2533using Bitmap bmp = new(40, 40); 2541using Bitmap bmp = new(40, 40); 2549using Bitmap bmp = new(40, 40); 2557using Bitmap bmp = new(40, 40); 2565using Bitmap bmp = new(40, 40); 2573using Bitmap bmp = new(40, 40); 2581using Bitmap bmp = new(40, 40); 2589using Bitmap bmp = new(40, 40); 2596using Bitmap bmp = new(40, 40); 2626using Bitmap bmp = new(40, 40); 2634using Bitmap bmp = new(40, 40); 2684using Bitmap bmp = new(40, 40); 2692using Bitmap bmp = new(40, 40); 2743using Bitmap bmp = new(40, 40); 2754using Bitmap bmp = new(40, 40); 2763using Bitmap bmp = new(40, 40); 2771using Bitmap bmp = new(40, 40); 2779using Bitmap bmp = new(40, 40); 2787using Bitmap bmp = new(40, 40); 2795using Bitmap bmp = new(40, 40); 2803using Bitmap bmp = new(40, 40); 2811using Bitmap bmp = new(40, 40); 2819using Bitmap bmp = new(40, 40); 2827using Bitmap bmp = new(40, 40); 2835using Bitmap bmp = new(40, 40); 2854using Bitmap bmp = new(20, 20); 2863using Bitmap bmp = new(20, 20); 2871using Bitmap bmp = new(20, 20); 2896using Bitmap bmp = new(20, 20); 2905using Bitmap bmp = new(20, 20); 2913using Bitmap bmp = new(20, 20); 2938using Bitmap bmp = new(10, 10); 2964using Bitmap bmp = new(10, 10); 2982using Bitmap b = new(100, 100);
mono\System.Imaging\MetafileTest.cs (5)
216using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 233using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 249using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 289using (Bitmap bmp = new(100, 100, PixelFormat.Format32bppArgb)) 331using Bitmap bmp = new(100, 100, PixelFormat.Format32bppArgb);
System\Drawing\BitmapTests.cs (104)
45using Bitmap bitmap = new(Helpers.GetTestBitmapPath(filename)); 58using Bitmap bitmap = new(Helpers.GetTestBitmapPath(filename), useIcm); 87using Bitmap bitmap = new(typeof(BitmapTests), "bitmap_173x183_indexed_8bit.bmp"); 101[InlineData(typeof(Bitmap), "")] 102[InlineData(typeof(Bitmap), "bitmap_173x183_indexed_8bit.bmp")] 113AssertExtensions.Throws<ArgumentNullException, ArgumentException>("resource", null, () => new Bitmap(typeof(Bitmap), null)); 121using Bitmap bitmap = new(stream); 135using Bitmap bitmap = new(stream, useIcm); 164using Bitmap bitmap = new(width, height); 188using Bitmap bitmap = new(width, height, pixelFormat); 207using Bitmap bitmap = new(width, height, stride, pixelFormat, scan0); 284public void Ctor_Width_Height_Graphics(Bitmap image, int width, int height) 287using Bitmap bitmap = new(width, height, graphics); 303using Bitmap image = new(Helpers.GetTestBitmapPath("16x16_one_entry_4bit.ico")); 304using Bitmap bitmap = new(image); 321using Bitmap bitmap = new(image, width, height); 332using Bitmap bitmap = new(image, new Size(width, height)); 349Bitmap image = new(1, 1); 367public void Clone_Rectangle_ReturnsExpected(Bitmap bitmap, Rectangle rectangle, PixelFormat targetFormat) 371using Bitmap clone = bitmap.Clone(rectangle, targetFormat); 403public void Clone_RectangleF_ReturnsExpected(Bitmap bitmap, Rectangle rectangle, PixelFormat format) 407using Bitmap clone = bitmap.Clone((RectangleF)rectangle, format); 425using Bitmap bitmap = new(3, 3); 439using Bitmap bitmap = new(3, 3); 455using Bitmap bitmap = new(1, 1); 463using Bitmap bitmap = new(1, 1, PixelFormat.Format16bppGrayScale); 471using Bitmap bitmap = new(1, 1); 472using Bitmap clone = Assert.IsType<Bitmap>(bitmap.Clone()); 481Bitmap bitmap = new(1, 1); 492using Bitmap bitmap = new(1, 1); 502Bitmap bitmap = new(1, 1); 514using Bitmap bitmap = new(1, 1); 524Bitmap bitmap = new(1, 1); 541public void GetPixel_ValidPixelFormat_Success(Bitmap bitmap, int x, int y, Color color) 558using Bitmap bitmap = new(1, 1); 567using Bitmap bitmap = new(1, 1); 574using Bitmap bitmap = new(1, 1, PixelFormat.Format16bppGrayScale); 581Bitmap bitmap = new(1, 1); 596public void GetHbitmap_FromHbitmap_ReturnsExpected(Bitmap bitmap, int width, int height) 603using Bitmap result = Image.FromHbitmap(handle); 615using (Bitmap result = Image.FromHbitmap(handle)) 624using (Bitmap result = Image.FromHbitmap(handle)) 639using Bitmap bitmap = new(width, height, PixelFormat.Format16bppGrayScale); 646Bitmap bitmap = new(1, 1); 675using var bitmap = Bitmap.FromHicon(icon.Handle); 700using Bitmap result = Bitmap.FromHicon(handle); 712using Bitmap bitmap = new(1, 1, PixelFormat.Format16bppGrayScale); 719Bitmap bitmap = new(1, 1); 760AssertExtensions.Throws<ArgumentException>(null, () => Bitmap.FromHicon(IntPtr.Zero)); 761AssertExtensions.Throws<ArgumentException>(null, () => Bitmap.FromHicon(10)); 768AssertExtensions.Throws<ArgumentException>(null, () => Bitmap.FromHicon(icon.Handle)); 774AssertExtensions.Throws<ArgumentException>(null, () => Bitmap.FromResource(IntPtr.Zero, "Name")); 775AssertExtensions.Throws<ArgumentException>(null, () => Bitmap.FromResource(10, "Name")); 781AssertExtensions.Throws<ArgumentException>(null, () => Bitmap.FromResource(IntPtr.Zero, "Name")); 782AssertExtensions.Throws<ArgumentException>(null, () => Bitmap.FromResource(10, "Name")); 788using Bitmap bitmap = new(10, 10); 824using Bitmap bitmap = new(10, 10); 860using Bitmap bitmap = new(10, 10); 882Bitmap bitmap = new(1, 1); 892using Bitmap bitmap = new(1, 1, PixelFormat.Format16bppGrayScale); 908using Bitmap bitmap = new(Helpers.GetTestBitmapPath("16x16_one_entry_4bit.ico")); 920public void SetPixel_ValidPixelFormat_Success(Bitmap bitmap, int x, int y, Color color) 932using Bitmap bitmap = new(1, 1, format); 941using Bitmap bitmap = new(1, 1); 950using Bitmap bitmap = new(1, 1); 957using Bitmap bitmap = new(1, 1, PixelFormat.Format16bppGrayScale); 964Bitmap bitmap = new(1, 1); 976using Bitmap bitmap = new(1, 1); 987using Bitmap bitmap = new(1, 1); 998using Bitmap bitmap = new(1, 1); 1005Bitmap bitmap = new(1, 1); 1013static Bitmap bitmap() => new(2, 2, PixelFormat.Format32bppArgb); 1062public void LockBits_Invoke_Success(Bitmap bitmap, Rectangle rectangle, ImageLockMode lockMode, PixelFormat pixelFormat, int expectedStride, int expectedReserved) 1094using Bitmap bitmap = new(1, 1); 1112using Bitmap bitmap = new(2, 2); 1131using Bitmap bitmap = new(1, 1); 1145using Bitmap bitmap = new(1, 1); 1162using Bitmap bitmap = new(1, 1); 1173Bitmap bitmap = new(1, 1); 1185using Bitmap bitmap = new(1, 1); 1201using Bitmap bitmap = new(2, 2); 1212using Bitmap bitmap = new(1, 1); 1224using Bitmap bitmap = new(1, 1); 1234using Bitmap bitmap = new(1, 1); 1241using Bitmap bitmap = new(1, 1); 1248using Bitmap bitmap = new(1, 1); 1258Bitmap bitmap = new(1, 1); 1267Bitmap bitmap = new(1, 1); 1287using Bitmap bitmap = new(2, 1, format); 1439using Bitmap bitmap = new(1, 1, pixelFormat); 1446using Bitmap bitmap = new(1, 1); 1453Bitmap bitmap = new(1, 1); 1468using (Bitmap bitmap = new(1, 1, PixelFormat.Format32bppRgb)) 1523using (Bitmap bitmap = new(1, 1, PixelFormat.Format32bppArgb)) 1567using (Bitmap bitmap = new(100, 100)) 1574using Bitmap bitmap = new(new TestStream(stream, canSeek: false)); 1589using (Bitmap bitmap = new(100, 100)) 1596using (Bitmap bitmap = new(backingStream)) 1651using Bitmap bitmap = new(1, 1); 1660using Bitmap bitmap = new(1, 1); 1685using Bitmap bitmap = new(1, 1);
System\Drawing\BufferedGraphicsContextTests.cs (11)
21using Bitmap image = new(10, 10); 33using Bitmap image = new(10, 10); 45using Bitmap image = new(10, 10); 57using Bitmap image = new(10, 10); 79using Bitmap image = new(10, 10); 101using Bitmap image = new(10, 10); 138using Bitmap image = new(10, 10); 146using Bitmap image = new(10, 10); 159using Bitmap image = new(10, 10); 229using Bitmap image = new(10, 10); 241using Bitmap image = new(10, 10);
System\Drawing\BufferedGraphicsTests.cs (7)
12using Bitmap image = new(3, 3); 27using Bitmap image = new(3, 3); 44using Bitmap image = new(3, 3); 64using Bitmap image = new(3, 3); 87using Bitmap originalImage = new(3, 3); 88using Bitmap targetImage = new(3, 3); 109using Bitmap image = new(3, 3);
System\Drawing\Drawing2D\GraphicsPathTests.cs (7)
1754using Bitmap bitmap = new(20, 20); 1762using Bitmap bitmap = new(5, 5); 1770using Bitmap bitmap = new(20, 20); 1780using Bitmap bitmap = new(20, 20); 1789using Bitmap bitmap = new(20, 20); 1810using Bitmap bitmap = new(40, 40); 1824using Bitmap bitmap = new(40, 40);
System\Drawing\FontFamilyTests.cs (1)
97using Bitmap image = new(10, 10);
System\Drawing\FontTests.cs (11)
467using Bitmap image = new(10, 10); 502using Bitmap image = new(10, 10); 534using Bitmap image = new(10, 10); 545using Bitmap image = new(10, 10); 591using Bitmap image = new(10, 10); 616using Bitmap image = new(10, 10); 635using Bitmap image = new(10, 10); 736using Bitmap image = new(10, 10); 764using Bitmap image = new(10, 10); 783using Bitmap image = new(10, 10); 840using Bitmap image = new(10, 10);
System\Drawing\GdiPlusHandlesTests.cs (1)
24using Bitmap bmp = new(100, 100);
System\Drawing\Graphics_DrawBezierTests.cs (13)
11using Bitmap bitmap = new(100, 100); 25using Bitmap bitmap = new(100, 100); 44using Bitmap bitmap = new(100, 100); 63using Bitmap image = new(10, 10); 73using Bitmap image = new(10, 10); 86using Bitmap image = new(10, 10); 105using Bitmap image = new(10, 10); 119using Bitmap image = new(10, 10); 128using Bitmap image = new(10, 10); 140using Bitmap image = new(10, 10); 150using Bitmap image = new(10, 10); 160using Bitmap image = new(10, 10); 178using Bitmap image = new(10, 10);
System\Drawing\Graphics_DrawLineTests.cs (12)
11using Bitmap bitmap = new(100, 100); 26using Bitmap bitmap = new(100, 100); 41using Bitmap image = new(10, 10); 52using Bitmap image = new(10, 10); 66using Bitmap image = new(10, 10); 86using Bitmap image = new(10, 10); 100using Bitmap image = new(10, 10); 109using Bitmap image = new(10, 10); 121using Bitmap image = new(10, 10); 133using Bitmap image = new(10, 10); 143using Bitmap image = new(10, 10); 161using Bitmap image = new(10, 10);
System\Drawing\Graphics_GetContextTests.Core.cs (7)
14using Bitmap image = new(10, 10); 27using Bitmap image = new(10, 10); 45using Bitmap image = new(10, 10); 60using Bitmap image = new(10, 10); 79using Bitmap image = new(10, 10); 98using Bitmap image = new(10, 10); 119using Bitmap image = new(10, 10);
System\Drawing\Graphics_GetContextTests.cs (7)
14using Bitmap image = new(10, 10); 31using Bitmap image = new(10, 10); 46using Bitmap image = new(10, 10); 62using Bitmap image = new(10, 10); 80using Bitmap image = new(10, 10); 98using Bitmap image = new(10, 10); 119using Bitmap image = new(10, 10);
System\Drawing\GraphicsTests.Core.cs (14)
16using Bitmap image = new(5, 5); 25using Bitmap image = new(10, 10); 42using Bitmap image = new(10, 10); 53using Bitmap image = new(10, 10); 73using Bitmap image = new(10, 10); 83using Bitmap image = new(10, 10); 96using Bitmap image = new(10, 10); 114using Bitmap image = new(10, 10); 127using Bitmap image = new(10, 10); 137using Bitmap image = new(10, 10); 150using Bitmap image = new(10, 10); 161using Bitmap image = new(10, 10); 172using Bitmap image = new(10, 10); 190using Bitmap image = new(10, 10);
System\Drawing\GraphicsTests.cs (195)
21using Bitmap bitmap = new(10, 10); 40using Bitmap bitmap = new(10, 10); 57using Bitmap bitmap = new(10, 10); 73using Bitmap bitmap = new(10, 10); 135using Bitmap bitmap = new(10, 10); 156using Bitmap bitmap = new(10, 10); 170using Bitmap bitmap1 = new(10, 10); 171using Bitmap bitmap2 = new(10, 10); 188using Bitmap bitmap = new(10, 10); 198using Bitmap bitmap = new(10, 10); 250using Bitmap image = new(10, 10, format); 267using Bitmap image = new(10, 10, format); 276Bitmap image = new(10, 10); 294using Bitmap image = new(10, 10, format); 313using Bitmap image = new(3, 3); 315using Bitmap targetImage = new(3, 3); 337using Bitmap image = new(10, 10); 345using Bitmap image = new(10, 10); 362using Bitmap image = new(10, 10); 405using Bitmap image = new(3, 3); 421using Bitmap image = new(10, 10); 429using Bitmap image = new(10, 10); 446using Bitmap image = new(10, 10); 457using Bitmap bitmap = new(10, 10); 469using Bitmap bitmap = new(10, 10); 483using Bitmap image = new(10, 10); 499using Bitmap image = new(10, 10); 509using Bitmap image = new(10, 10); 525using Bitmap image = new(10, 10); 539using Bitmap image = new(10, 10); 554using Bitmap image = new(10, 10); 571using Bitmap image = new(10, 10); 590using Bitmap image = new(10, 10); 601using Bitmap image = new(10, 10); 609using Bitmap image = new(10, 10); 617using Bitmap image = new(10, 10); 634using Bitmap image = new(10, 10); 648using Bitmap image = new(10, 10); 662using Bitmap image = new(10, 10); 670using Bitmap image = new(10, 10); 687using Bitmap image = new(10, 10); 704using Bitmap image = new(10, 10); 715using Bitmap image = new(10, 10); 723using Bitmap image = new(10, 10); 731using Bitmap image = new(10, 10); 748using Bitmap image = new(10, 10); 764using Bitmap image = new(10, 10); 775using Bitmap image = new(10, 10); 783using Bitmap image = new(10, 10); 791using Bitmap image = new(10, 10); 808using Bitmap image = new(10, 10); 860using Bitmap image = new(3, 3); 873using Bitmap image = new(10, 10); 890using Bitmap image = new(10, 10); 906using Bitmap image = new(10, 10); 917using Bitmap image = new(10, 10); 925using Bitmap image = new(10, 10); 933using Bitmap image = new(10, 10); 950using Bitmap image = new(10, 10); 964using Bitmap image = new(10, 10); 975using Bitmap image = new(10, 10); 983using Bitmap image = new(10, 10); 1000using Bitmap image = new(10, 10); 1017using Bitmap image = new(10, 10); 1028using Bitmap image = new(10, 10); 1036using Bitmap image = new(10, 10); 1053using Bitmap image = new(10, 10); 1067using Bitmap image = new(5, 5); 1090using Bitmap image = new(10, 10); 1098using Bitmap image = new(10, 10); 1109using Bitmap image = new(5, 5); 1118using Bitmap image = new(10, 10); 1136using Bitmap image = new(10, 10); 1148using Bitmap image = new(10, 10); 1161using Bitmap image = new(10, 10); 1177using Bitmap image = new(10, 10); 1187using Bitmap image = new(10, 10); 1204using Bitmap image = new(10, 10); 1219using Bitmap image = new(10, 10); 1243using Bitmap image = new(10, 10); 1255using Bitmap image = new(10, 10); 1264using Bitmap image = new(10, 10); 1282using Bitmap image = new(10, 10); 1297using Bitmap image = new(10, 10); 1317using Bitmap image = new(10, 10); 1333using Bitmap image = new(10, 10); 1341using Bitmap image = new(10, 10); 1358using Bitmap image = new(10, 10); 1371using Bitmap image = new(10, 10); 1389using Bitmap image = new(10, 10); 1403using Bitmap image = new(10, 10); 1414using Bitmap image = new(10, 10); 1422using Bitmap image = new(10, 10); 1439using Bitmap image = new(10, 10); 1454using Bitmap image = new(10, 10); 1474using Bitmap image = new(10, 10); 1490using Bitmap image = new(10, 10); 1498using Bitmap image = new(10, 10); 1515using Bitmap image = new(10, 10); 1538using Bitmap image = new(10, 10); 1555using Bitmap image = new(10, 10); 1607using Bitmap image = new(10, 10); 1618using Bitmap image = new(10, 10); 1646using Bitmap image = new(10, 10); 1654using Bitmap image = new(10, 10); 1674using Bitmap image = new(10, 10); 1739using Bitmap image = new(10, 10); 1804using Bitmap image = new(10, 10); 1820using Bitmap image = new(10, 10); 1836using Bitmap image = new(10, 10); 1851using Bitmap image = new(10, 10); 1862using Bitmap image = new(10, 10); 1871using Bitmap image = new(10, 10); 1880using Bitmap image = new(10, 10); 1889using Bitmap image = new(10, 10); 1906using Bitmap image = new(10, 10); 1924using Bitmap image = new(10, 10, pixelFormat); 1932using Bitmap image = new(10, 10); 1948using Bitmap image = new(10, 10); 1958using Bitmap image = new(10, 10); 1969using Bitmap image = new(10, 10); 1983using Bitmap image = new(10, 10); 1995using Bitmap image = new(10, 10); 2007using Bitmap image = new(10, 10); 2027using Bitmap image = new(10, 10); 2041using Bitmap image = new(10, 10); 2051using Bitmap image = new(10, 10); 2064using Bitmap image = new(10, 10); 2083using Bitmap image = new(10, 10); 2096using Bitmap image = new(10, 10); 2105using Bitmap image = new(10, 10); 2117using Bitmap image = new(10, 10); 2127using Bitmap image = new(10, 10); 2137using Bitmap image = new(10, 10); 2155using Bitmap image = new(10, 10); 2167using Bitmap image = new(10, 10); 2178using Bitmap image = new(10, 10); 2192using Bitmap image = new(10, 10); 2212using Bitmap image = new(10, 10); 2226using Bitmap image = new(10, 10); 2237using Bitmap image = new(10, 10); 2251using Bitmap image = new(10, 10); 2263using Bitmap image = new(10, 10); 2275using Bitmap image = new(10, 10); 2295using Bitmap image = new(10, 10); 2309using Bitmap image = new(10, 10); 2318using Bitmap image = new(10, 10); 2330using Bitmap image = new(10, 10); 2342using Bitmap image = new(10, 10); 2352using Bitmap image = new(10, 10); 2370using Bitmap image = new(10, 10); 2382using Bitmap image = new(10, 10); 2391using Bitmap image = new(10, 10); 2403using Bitmap image = new(10, 10); 2412using Bitmap image = new(10, 10); 2424using Bitmap image = new(10, 10); 2442using Bitmap image = new(10, 10); 2454using Bitmap image = new(10, 10); 2468using Bitmap image = new(10, 10); 2485using Bitmap image = new(10, 10); 2502using Bitmap image = new(10, 10); 2522using Bitmap image = new(10, 10); 2533using Bitmap image = new(10, 10); 2556using Bitmap image = new(10, 10); 2573using Bitmap image = new(10, 10); 2584using Bitmap image = new(10, 10); 2598using Bitmap image = new(10, 10); 2613using Bitmap image = new(10, 10); 2625using Bitmap image = new(10, 10); 2645using Bitmap image = new(10, 10); 2659using Bitmap image = new(10, 10); 2669using Bitmap image = new(10, 10); 2682using Bitmap image = new(10, 10); 2693using Bitmap image = new(10, 10); 2704using Bitmap image = new(10, 10); 2723using Bitmap image = new(10, 10); 2738using Bitmap image = new(2, 2); 2754using Bitmap image = new(10, 10); 2771using Bitmap image = new(10, 10); 2782using Bitmap image = new(50, 50); 2791using Bitmap image = new(10, 10); 2824using Bitmap bitmap = new(100, 100); 2864using Bitmap bitmap = new(10, 10); 2873using Bitmap bitmap = new(10, 10); 2884using Bitmap bitmap = new(10, 10); 2894using Bitmap bitmap = new(10, 10); 2905using Bitmap bitmap = new(10, 10); 2922using Bitmap bitmap = new(10, 10, sourceFormat); 2926using Bitmap bitmap2 = new(10, 10, destinationFormat); 2940internal static unsafe void VerifyBitmapEmpty(Bitmap bitmap) 2954internal static unsafe void VerifyBitmapNotEmpty(Bitmap bitmap) 2972using Bitmap bitmap = new(10, 10); 2981using Bitmap bitmap = new(10, 10); 2990using Bitmap bitmap = new(10, 10); 2999using Bitmap bitmap = new(10, 10);
System\Drawing\IconConverterTests.cs (4)
75Assert.True(_icoConv.CanConvertTo(typeof(Bitmap)), "Bitmap (no context)"); 76Assert.True(_icoConv.CanConvertTo(null, typeof(Bitmap)), "Bitmap"); 93Assert.True(_icoConvFrmTD.CanConvertTo(typeof(Bitmap)), "TD Bitmap (no context)"); 94Assert.True(_icoConvFrmTD.CanConvertTo(null, typeof(Bitmap)), "TD Bitmap");
System\Drawing\IconTests.cs (8)
342using Bitmap bitmap = icon.ToBitmap(); 523using Bitmap bitmap = icon.ToBitmap(); 557using Bitmap bitmap = icon.ToBitmap(); 558using (Bitmap secondBitmap = icon.ToBitmap()) 614using (Bitmap bitmap = new(10, 10)) 724using Bitmap expected = icon.ToBitmap(); 725using Bitmap actual = loaded.ToBitmap(); 753using Bitmap bitmap = icon.ToBitmap();
System\Drawing\ImageAnimator.ManualTests.cs (3)
41Dictionary<string, Bitmap> bitmaps = []; 53Bitmap animation = (Bitmap)o;
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\ImageConverterTests.cs (5)
39Bitmap IconBitmap = (Bitmap)_imgConv.ConvertFrom(icon); 188Bitmap value = new(64, 64); 200Assert.Throws<NotSupportedException>(() => _imgConv.ConvertTo(null, CultureInfo.InvariantCulture, _image, typeof(Bitmap))); 209Assert.Throws<NotSupportedException>(() => _imgConvFrmTD.ConvertTo(null, CultureInfo.InvariantCulture, _image, typeof(Bitmap)));
System\Drawing\ImageTests.cs (23)
26using Bitmap bitmap = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 34using Bitmap bitmap = new(1, 1); 42using Bitmap bitmap = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 84using Bitmap bitmap = new(Helpers.GetTestBitmapPath("almogaver1bit.bmp")); 92using Bitmap bitmap = new(1, 1); 100using Bitmap bitmap = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 114using Bitmap bitmap = new(1, 1); 124using Bitmap bitmap = new(Helpers.GetTestBitmapPath("almogaver1bit.bmp")); 131using Bitmap source = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 135using Bitmap bitmap = new(1, 1); 159using Bitmap bitmap = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 182using Bitmap bitmap = new(1, 1); 192using Bitmap bitmap = new(Helpers.GetTestBitmapPath("almogaver1bit.bmp")); 202using Bitmap source = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 206using Bitmap bitmap = new(1, 1); 220using Bitmap bitmap = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 230using Bitmap source = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 231using Bitmap bitmap = new(1, 1); 289using Bitmap bitmap = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 431using Bitmap source = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 432using Bitmap bitmap = new(Helpers.GetTestBitmapPath("almogaver1bit.bmp")); 654using Bitmap bitmap = new(1, 1); 665using Bitmap bitmap = new(1, 1);
System\Drawing\Imaging\CachedBitmapTests.cs (1)
12using Bitmap bitmap = new(10, 10);
System\Drawing\Imaging\Effects\EffectsTests.cs (17)
11using Bitmap bitmap = new(10, 10); 33using Bitmap bitmap = new(10, 10); 58using Bitmap bitmap = new(10, 10); 80using Bitmap bitmap = new(10, 10); 106using Bitmap bitmap = new(10, 10); 132using Bitmap bitmap = new(10, 10); 158using Bitmap bitmap = new(10, 10); 181using Bitmap bitmap = new(10, 10); 240using Bitmap bitmap = new(10, 10); 253using Bitmap bitmap = new(10, 10); 273using Bitmap bitmap = new(10, 10); 293using Bitmap bitmap = new(10, 10); 313using Bitmap bitmap = new(10, 10); 333using Bitmap bitmap = new(10, 10); 353using Bitmap bitmap = new(10, 10); 372using Bitmap bitmap = new(10, 10); 394using Bitmap bitmap = new(10, 10);
System\Drawing\Imaging\ImageAttributesTests.cs (47)
70using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 94using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 127using Bitmap bitmapBig = new(200, 100); 128using Bitmap bitmapSmall = new(100, 100); 147using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 171using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 202using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 273using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 298using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 342using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 365using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 392using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 421using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 482using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 495using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 508using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 537using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 551using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 581using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 594using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 607using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 638using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 669using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 684using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 717using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 734using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 751using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 785using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 800using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 815using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 848using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 863using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 904using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 930using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 960using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 1009using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 1024using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 1056using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 1122using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 1138using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 1171using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 1184using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 1197using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 1248using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 1262using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 1307using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height); 1322using Bitmap bitmap = new(_rectangle.Width, _rectangle.Height);
System\Drawing\Imaging\MetafileTests.cs (43)
125using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 144using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 171using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 187using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 207using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 217using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 228using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 237using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 247using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 257using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 268using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 304using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 322using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 340using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 356using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 373using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 400using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 411using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 424using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 436using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 449using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 465using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 481using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 498using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 516using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 533using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 549using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 565using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 582using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 600using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 638using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 660using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 678using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 695using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 711using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 727using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 738using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 749using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 761using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 774using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 800using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 815using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 827using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb);
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\Drawing\Printing\PrintDocumentTests.cs (1)
281using Bitmap bitmap = new(20, 20);
System\Drawing\Printing\PrinterSettingsTests.cs (1)
409using Bitmap bitmap = new(10, 10);
System\Drawing\RegionTests.cs (5)
607using Bitmap image = new(10, 10); 988using Bitmap image = new(10, 10); 1289using Bitmap image = new(10, 10); 1328using (Bitmap image = new(10, 10)) 1382using (Bitmap image = new(10, 10))
System\Drawing\TextureBrushTests.cs (50)
25Bitmap brushImage = Assert.IsType<Bitmap>(brush.Image); 42using var image = Bitmap.FromHicon(icon.Handle); 66Bitmap brushImage = Assert.IsType<Bitmap>(brush.Image); 93Bitmap brushImage = Assert.IsType<Bitmap>(brush.Image); 114Bitmap brushImage = Assert.IsType<Bitmap>(brush.Image); 147Bitmap brushImage = Assert.IsType<Bitmap>(brush.Image); 168Bitmap brushImage = Assert.IsType<Bitmap>(brush.Image); 202Bitmap brushImage = Assert.IsType<Bitmap>(brush.Image); 224Bitmap brushImage = Assert.IsType<Bitmap>(brush.Image); 254Bitmap image = new(10, 10); 272using Bitmap image = new(10, 10); 290using Bitmap image = new(10, 10); 302using Bitmap image = new(10, 10); 314using Bitmap image = new(10, 10); 324using Bitmap image = new(10, 10); 345using Bitmap image = new(10, 10); 371using Bitmap image = new(10, 10); 380using Bitmap image = new(10, 10); 390using Bitmap image = new(10, 10); 409using Bitmap image = new(10, 10); 422using Bitmap image = new(10, 10); 434using Bitmap image = new(10, 10); 449using Bitmap image = new(10, 10); 474using Bitmap image = new(10, 10); 501using Bitmap image = new(10, 10); 509using Bitmap image = new(10, 10); 538using Bitmap image = new(10, 10); 565using Bitmap image = new(10, 10); 573using Bitmap image = new(10, 10); 585using Bitmap image = new(10, 10); 595using Bitmap image = new(10, 10); 603using Bitmap image = new(10, 10); 614using Bitmap image = new(10, 10); 643using Bitmap image = new(10, 10); 670using Bitmap image = new(10, 10); 678using Bitmap image = new(10, 10); 695using Bitmap image = new(10, 10); 706using Bitmap image = new(10, 10); 714using Bitmap image = new(10, 10); 805using Bitmap brushBitmap = new(2, 2); 812using Bitmap targetImage = new(4, 4);
System.Windows.Forms (159)
System\Drawing\Design\UITypeEditor.cs (1)
52[typeof(Bitmap)] = $"System.Drawing.Design.BitmapEditor, {(Assemblies.SystemDrawingDesign)}",
System\Resources\ResxFileRef.Converter.cs (1)
137if (toCreate == typeof(Bitmap) && fileName.EndsWith(".ico", StringComparison.Ordinal))
System\Windows\Forms\ActiveX\AxHost.cs (1)
1010public new void DrawToBitmap(Bitmap bitmap, Rectangle targetBounds)
System\Windows\Forms\BinaryFormat\WinFormsBinaryFormatWriter.cs (3)
17public static void WriteBitmap(Stream stream, Bitmap bitmap) 28new ClassInfo(1, typeof(Bitmap).FullName!, s_dataMemberName), 67else if (value is Bitmap bitmap)
System\Windows\Forms\ComponentModel\COM2Interop\COM2PictureConverter.cs (3)
21private Type _pictureType = typeof(Bitmap); 70_pictureType = typeof(Bitmap); 109else if (managedValue is Bitmap bitmap)
System\Windows\Forms\Control.cs (10)
4781/// <inheritdoc cref="DoDragDropAsJson{T}(T, DragDropEffects, Bitmap?, Point, bool)"/> 4808Bitmap? dragImage, 4837/// should either be a base managed class (<see cref="string"/>, <see cref="Bitmap"/>, 4853/// Because <see cref="DoDragDrop(object, DragDropEffects, Bitmap, Point, bool)"/> always performs the 4854/// RGB multiplication step in calculating the alpha value, you should always pass a <see cref="Bitmap"/> 4855/// without pre-multiplied alpha blending. Note that no error will result from passing a <see cref="Bitmap"/> 4863Bitmap? dragImage, 4899public void DrawToBitmap(Bitmap bitmap, Rectangle targetBounds) 4917using Bitmap image = new(width, height, bitmap.PixelFormat); 6358public void ScaleBitmapLogicalToDevice(ref Bitmap logicalBitmap)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (1)
75using Bitmap bitmap = new(2, 2);
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (6)
13private static Bitmap? t_checkImageChecked; 18private static Bitmap? t_checkImageIndeterminate; 182Bitmap checkImage; 294private static Bitmap GetCheckBoxImage(Color checkColor, Rectangle fullSize, ref Color cacheCheckColor, ref Bitmap? cacheCheckImage) 308Bitmap bitmap = new(fullSize.Width, fullSize.Height);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (2)
47private static Bitmap? s_errorBmp; 1286private static Bitmap GetBitmap(string bitmapName) =>
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (2)
29private static Bitmap? s_checkImage; 1359Bitmap bitmap = new(fullSize.Width, fullSize.Height);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (1)
829Bitmap? bmFlipXPThemes = FlipXPThemesBitmap;
System\Windows\Forms\Controls\DataGridView\DataGridViewHeaderCell.cs (2)
78internal Bitmap? FlipXPThemesBitmap 80get => Properties.GetValueOrDefault<Bitmap?>(s_propFlipXPThemesBitmap);
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (2)
18private static Bitmap? s_errorBitmap; 75internal static Bitmap ErrorBitmap =>
System\Windows\Forms\Controls\DataGridView\DataGridViewImageColumn.cs (1)
222DefaultCellStyle.NullValue is Bitmap bitmap &&
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (22)
16private static Bitmap? s_rightArrowBmp; 17private static Bitmap? s_leftArrowBmp; 18private static Bitmap? s_rightArrowStarBmp; 19private static Bitmap? s_leftArrowStarBmp; 20private static Bitmap? s_pencilLTRBmp; 21private static Bitmap? s_pencilRTLBmp; 22private static Bitmap? s_starBmp; 37private static Bitmap LeftArrowBitmap => s_leftArrowBmp ??= GetBitmapFromIcon("DataGridViewRow.left"); 39private static Bitmap LeftArrowStarBitmap => s_leftArrowStarBmp ??= GetBitmapFromIcon("DataGridViewRow.leftstar"); 41private static Bitmap PencilLTRBitmap => s_pencilLTRBmp ??= GetBitmapFromIcon("DataGridViewRow.pencil_ltr"); 43private static Bitmap PencilRTLBitmap => s_pencilRTLBmp ??= GetBitmapFromIcon("DataGridViewRow.pencil_rtl"); 45private static Bitmap RightArrowBitmap => s_rightArrowBmp ??= GetBitmapFromIcon("DataGridViewRow.right"); 47private static Bitmap RightArrowStarBitmap => s_rightArrowStarBmp ??= GetBitmapFromIcon("DataGridViewRow.rightstar"); 49private static Bitmap StarBitmap => s_starBmp ??= GetBitmapFromIcon("DataGridViewRow.star"); 73private static Bitmap GetArrowBitmap(bool rightToLeft) => 78private static Bitmap GetArrowStarBitmap(bool rightToLeft) => 83private static Bitmap GetBitmapFromIcon(string iconName) => 501private static Bitmap GetPencilBitmap(bool rightToLeft) => 702using Bitmap bmFlipXPThemes = new(backgroundBounds.Height, backgroundBounds.Width); 762Bitmap? bmp = null; 1023Bitmap bmp, 1048using Bitmap invertedBitmap = ControlPaint.CreateBitmapWithInvertedForeColor(bmp, backColor);
System\Windows\Forms\Controls\ImageList\ImageList.cs (11)
279private Bitmap CreateBitmap(Original original, out bool ownsBitmap) 288Bitmap bitmap; 289if (original._image is Bitmap originalBitmap) 308Bitmap source = bitmap; 309bitmap = (Bitmap)bitmap.Clone(); 335Bitmap source = bitmap; 369private int AddToHandle(Bitmap bitmap) 448Bitmap bitmapValue = CreateBitmap(original, out bool ownsBitmap); 600private Bitmap GetBitmap(int index) 605Bitmap? result = null; 618Bitmap? tmpBitmap = null;
System\Windows\Forms\Controls\ImageList\ImageList.ImageCollection.cs (4)
140if (value is not Bitmap bitmap) 151bitmap = (Bitmap)bitmap.Clone(); 312if (original._image is Bitmap) 321Bitmap bitmapValue = _owner.CreateBitmap(original, out bool ownsBitmap);
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (10)
38private Bitmap? _alphaBitmap; 39private Bitmap? _categoryBitmap; 40private Bitmap? _propertyPageBitmap; 1314private int AddImage(Bitmap image) 2095if (images[i] is Bitmap bitmap) 2104private void AddLargeImage(Bitmap? originalBitmap) 2113Bitmap largeBitmap = ScaleHelper.CopyAndScaleToSize(originalBitmap, s_largeButtonSize); 4020protected virtual Bitmap SortByPropertyImage => ScaleHelper.GetIconResourceAsDefaultSizeBitmap(typeof(PropertyGrid), "PBAlpha"); 4028protected virtual Bitmap SortByCategoryImage => ScaleHelper.GetIconResourceAsDefaultSizeBitmap(typeof(PropertyGrid), "PBCategory"); 4036protected virtual Bitmap ShowPropertyPageImage => ScaleHelper.GetIconResourceAsDefaultSizeBitmap(typeof(PropertyGrid), "PBPPage");
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.DropDownButtonAdapter.cs (1)
91if (ControlPaint.IsDark(backgroundColor) && image is Bitmap bitmap)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
1722using Bitmap bitmap = Image.FromHbitmap(compatibleBitmap);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridErrorDialog.cs (2)
25private readonly Bitmap _expandImage; 26private readonly Bitmap _collapseImage;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (2)
206Bitmap bitmap = CreateResizedBitmap("Arrow", DownArrowIconWidth, DownArrowIconHeight); 936private Bitmap CreateResizedBitmap(string icon, int width, int height)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (2)
44private Bitmap? _sizeGripGlyph; 208private Bitmap GetSizeGripGlyph(Graphics g)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
1612public new void DrawToBitmap(Bitmap bitmap, Rectangle targetBounds)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
2651using Bitmap image = new(bounds.Width, bounds.Height);
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (8)
1052if (value is Bitmap bmp && ImageTransparentColor != Color.Empty) 1089if (Image is Bitmap currentImage && value != Color.Empty) 2137/// either be a base managed class (<see cref="string"/>, <see cref="Bitmap"/>, or <see cref="Metafile"/>) 2153/// Because <see cref="DoDragDrop(object, DragDropEffects, Bitmap, Point, bool)"/> always performs the 2154/// RGB multiplication step in calculating the alpha value, you should always pass a <see cref="Bitmap"/> 2155/// without pre-multiplied alpha blending. Note that no error will result from passing a <see cref="Bitmap"/> 2160public unsafe DragDropEffects DoDragDrop(object data, DragDropEffects allowedEffects, Bitmap? dragImage, Point cursorOffset, bool useDefaultDragImage) 2219internal IDropSource.Interface CreateDropSource(IComVisibleDataObject dataObject, Bitmap? dragImage, Point cursorOffset, bool useDefaultDragImage)
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (2)
655private unsafe Bitmap? GetNativeMenuItemImage() 707Bitmap image = new(16, 16);
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (4)
832if (SystemInformation.HighContrast && image is Bitmap bitmap) 877using Bitmap textBmp = new(textSize.Width, textSize.Height, PixelFormat.Format32bppPArgb); 1025private static Bitmap CreateDisabledImage(Image normalImage, ImageAttributes? imgAttrib) 1035Bitmap disabledBitmap = new(size.Width, size.Height);
System\Windows\Forms\Controls\ToolStrips\ToolStripScrollButton.cs (2)
18private static Bitmap? t_upScrollImage; 21private static Bitmap? t_downScrollImage;
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
159public new void DrawToBitmap(Bitmap bitmap, Rectangle targetBounds)
System\Windows\Forms\DataBinding\BindingNavigator.cs (6)
181Bitmap moveFirstImage = ScaleHelper.GetIconResourceAsDefaultSizeBitmap(typeof(BindingNavigator), "BindingNavigator.MoveFirst"); 182Bitmap movePreviousImage = ScaleHelper.GetIconResourceAsDefaultSizeBitmap(typeof(BindingNavigator), "BindingNavigator.MovePrevious"); 183Bitmap moveNextImage = ScaleHelper.GetIconResourceAsDefaultSizeBitmap(typeof(BindingNavigator), "BindingNavigator.MoveNext"); 184Bitmap moveLastImage = ScaleHelper.GetIconResourceAsDefaultSizeBitmap(typeof(BindingNavigator), "BindingNavigator.MoveLast"); 185Bitmap addNewImage = ScaleHelper.GetIconResourceAsDefaultSizeBitmap(typeof(BindingNavigator), "BindingNavigator.AddNew"); 186Bitmap deleteImage = ScaleHelper.GetIconResourceAsDefaultSizeBitmap(typeof(BindingNavigator), "BindingNavigator.Delete");
System\Windows\Forms\Design\PropertyTab.cs (2)
32private Bitmap? _bitmap; 38public virtual Bitmap? Bitmap
System\Windows\Forms\Dialogs\TaskDialog\TaskDialogIcon.cs (4)
100/// <see cref="Bitmap"/> instance. 102/// <param name="image">The <see cref="Bitmap"/> instance.</param> 111public TaskDialogIcon(Bitmap image) 188private static Icon BitmapToIcon(Bitmap bitmap)
System\Windows\Forms\Dialogs\ThreadExceptionDialog.cs (2)
66private Bitmap? _expandImage; 67private Bitmap? _collapseImage;
System\Windows\Forms\ErrorProvider\ErrorProvider.IconRegion.cs (1)
43Bitmap bitmap = _icon.ToBitmap();
System\Windows\Forms\GiveFeedbackEventArgs.cs (2)
26public GiveFeedbackEventArgs(DragDropEffects effect, bool useDefaultCursors, Bitmap? dragImage, Point cursorOffset, bool useDefaultDragImage) 53public Bitmap? DragImage { get; set; }
System\Windows\Forms\MDI\MDIControlStrip.cs (1)
78private Bitmap GetTargetWindowIcon()
System\Windows\Forms\Nrbf\WinFormsNrbfSerializer.cs (3)
32{ Types.ToTypeName($"{Types.BitmapType}, System.Drawing"), typeof(Bitmap) }, 33{ Types.ToTypeName($"{Types.BitmapType}, System.Drawing.Common"), typeof(Bitmap) } 50|| type == typeof(Bitmap);
System\Windows\Forms\Nrbf\WinFormsSerializationRecordExtensions.cs (2)
39/// Tries to get a record as a binary formatted <see cref="Bitmap"/>. 46|| !types.TypeNameMatches(typeof(Bitmap))
System\Windows\Forms\OLE\Clipboard.cs (2)
371/// Retrieves a <see cref="Bitmap"/> from the <see cref="Clipboard"/>. 374/// <see cref="Bitmap"/>s are re-hydrated from a <see cref="SerializationRecord"/> by reading a byte array.
System\Windows\Forms\OLE\DropSource.cs (1)
20public DropSource(ISupportOleDropSource peer, IComVisibleDataObject dataObject, Bitmap? dragImage, Point cursorOffset, bool useDefaultDragImage)
System\Windows\Forms\OLE\WinFormsOleServices.cs (8)
47if (format.Equals(DataFormatNames.Bitmap) && data is Bitmap bitmap) 66&& (typeof(Bitmap) == typeof(T) || typeof(Image) == typeof(T)) 67&& TryGetBitmapData(dataObject, out Bitmap? bitmap)) 76static unsafe bool TryGetBitmapData(Com.IDataObject* dataObject, [NotNullWhen(true)] out Bitmap? data) 109&& Image.FromHbitmap(medium.hGlobal) is Bitmap clipboardBitmap) 111data = (Bitmap)clipboardBitmap.Clone(); 134if (data is Bitmap && format.Equals(DataFormatNames.Dib)) 142DataFormatNames.Bitmap or DataFormatNames.BinaryFormatBitmap => type == typeof(Bitmap) || type == typeof(Image),
System\Windows\Forms\Rendering\ControlPaint.cs (15)
19private static Bitmap? t_checkImage; // image used to render checkmarks 145public static unsafe IntPtr CreateHBitmap16Bit(Bitmap bitmap, Color background) 241public static unsafe IntPtr CreateHBitmapTransparencyMask(Bitmap bitmap) 300public static IntPtr CreateHBitmapColorMask(Bitmap bitmap, IntPtr monochromeMask) 1367Bitmap bitmap = new(rectangle.Width, rectangle.Height); 1437using Bitmap bitmap = new(width, height); 1533using Bitmap bitmap = new(width, height); 1632using Bitmap bitmap = new(image.Width, image.Height); 2092using Bitmap bitmap = new(patternSize, patternSize); 2143using Bitmap b = new(2, 2); 2222using Bitmap bitmap = new(patternSize, patternSize); 2404internal static void InvertForeColorIfNeeded(Bitmap bitmap, Color backgroundColor) 2425internal static Bitmap CreateBitmapWithInvertedForeColor(Bitmap bitmap, Color backgroundColor) 2427Bitmap result = new(bitmap.Width, bitmap.Height, bitmap.PixelFormat);
System.Windows.Forms.Design (60)
DataSourceDescriptor.cs (1)
12public abstract Bitmap Image { get; }
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
1105if (button?.Image is not Bitmap buttonBitmap)
System\ComponentModel\Design\DataSourceDescriptor.cs (1)
12public abstract Bitmap Image { get; }
System\ComponentModel\Design\DataSourceGroup.cs (1)
12public abstract Bitmap Image { get; }
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.EditorButton.cs (1)
126using Bitmap arrowBitmap = icon.ToBitmap();
System\Drawing\Design\ToolboxItem.cs (7)
77public Bitmap? Bitmap 79get => (Bitmap?)Properties["Bitmap"]; 87public Bitmap? OriginalBitmap 89get => (Bitmap?)Properties["OriginalBitmap"]; 599Bitmap? itemBitmap = attr.GetImage(type, false) as Bitmap; 772ValidatePropertyType(propertyName, value, typeof(Bitmap), true);
System\Windows\Forms\Design\Behavior\ContainerSelectorGlyph.cs (1)
16private Bitmap? _glyph;
System\Windows\Forms\Design\Behavior\DesignerActionGlyph.cs (2)
27private Bitmap? _glyphImageClosed; 28private Bitmap? _glyphImageOpened;
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (2)
27public Bitmap dragImage; // bitblt'd image of control 1025((Bitmap)_dragImage).MakeTransparent(Color.Chartreuse);
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionGlyph.cs (1)
15private Bitmap? _image;
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (4)
43private static Bitmap? s_selectedColumnsItemBitmap; 57if (_moveUp.Image is Bitmap moveUp) 62if (_moveDown.Image is Bitmap moveDown) 72private static Bitmap SelectedColumnsItemBitmap
System\Windows\Forms\Design\DataSourceGroup.cs (1)
12public abstract Bitmap Image { get; }
System\Windows\Forms\Design\DesignBindingPicker.cs (5)
161Bitmap addNewBitmap = new( 289Bitmap addNewBitmap = new(typeof(DesignBindingPicker), "AddNewDataSource.bmp"); 1909Bitmap images = new(typeof(DesignBindingPicker), "DataPickerImages.bmp"); 1951Bitmap scaledImage = ScaleHelper.CopyAndScaleToSize((Bitmap)image, scaledSize);
System\Windows\Forms\Design\DesignBindingValueUIHandler.cs (2)
16private Bitmap? _dataBitmap; 18internal Bitmap DataBitmap
System\Windows\Forms\Design\DesignerUtils.cs (5)
37private static Bitmap? s_boxImage; 312public static void GenerateSnapShot(Control control, out Bitmap image, int borderSize, double opacity, Color backColor) 385public static void GenerateSnapShotWithBitBlt(Control control, out Bitmap image) 420public static bool GenerateSnapShotWithWM_PRINT(Control control, out Bitmap image) 655private static unsafe void SetImageAlpha(Bitmap b, double opacity)
System\Windows\Forms\Design\ImageListDesigner.OriginalImageCollection.cs (1)
121_items.Add(new ImageListImage((Bitmap)_owner.ImageList.Images[i], imageKeys[i]));
System\Windows\Forms\Design\ImageListImage.cs (1)
57return new ImageListImage((Bitmap)Image.FromStream(stream));
System\Windows\Forms\Design\InheritanceUI.cs (2)
14private static Bitmap? s_inheritanceGlyph; 21public static Bitmap InheritanceGlyph =>
System\Windows\Forms\Design\StandardMenuStripVerb.cs (4)
166Bitmap image = null; 333Bitmap image = null; 405private static Bitmap GetImage(string name) 407Bitmap image = null;
System\Windows\Forms\Design\StyleEditorForm.cs (2)
351_infoPictureBox1.Image = ScaleHelper.ScaleToDpi(_infoPictureBox1.Image as Bitmap, ScaleHelper.InitialSystemDpi); 352_infoPictureBox2.Image = ScaleHelper.ScaleToDpi(_infoPictureBox2.Image as Bitmap, ScaleHelper.InitialSystemDpi);
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (2)
356if (button?.Image is not Bitmap buttonBitmap) 733Bitmap tbxBitmap = ToolStripDesignerUtils.GetToolboxBitmap(itemType);
System\Windows\Forms\Design\ToolStripDesignerUtils.cs (6)
32private static Dictionary<Type, Bitmap> t_cachedWinformsImages; 132private static Bitmap GetKnownToolboxBitmap(Type itemType) 136if (!t_cachedWinformsImages.TryGetValue(itemType, out Bitmap value)) 138Bitmap knownImage = ToolboxBitmapAttribute.GetImageFromResource(itemType, null, false) as Bitmap; 147public static Bitmap GetToolboxBitmap(Type itemType)
System\Windows\Forms\Design\TreeNodeCollectionEditor.cs (3)
69if (_moveDownButton.Image is Bitmap moveDown) 74if (_moveUpButton.Image is Bitmap moveUp) 79if (_btnDelete.Image is Bitmap delete)
System\Windows\Forms\Design\VsPropertyGrid.cs (4)
16protected override Bitmap SortByPropertyImage => GetBitmap("PBAlpha"); 18protected override Bitmap SortByCategoryImage => GetBitmap("PBCategory"); 20protected override Bitmap ShowPropertyPageImage => GetBitmap("PBPPage"); 22private static Bitmap GetBitmap(string resourceName)
System.Windows.Forms.Design.Tests (62)
EnsureEditorsTests.cs (1)
49[InlineData(typeof(Bitmap), typeof(BitmapEditor))]
System\ComponentModel\Design\ByteViewerTests.cs (4)
427using Bitmap image = new(10, 10); 468using Bitmap image = new(10, 10); 513using Bitmap image = new(10, 10); 543using Bitmap image = new(10, 10);
System\Drawing\Design\BitmapEditorTests.cs (5)
75using Bitmap image = new(10, 10); 78Bitmap result = Assert.IsType<Bitmap>(editor.LoadFromStream(stream)); 91Bitmap result = Assert.IsType<Bitmap>(editor.LoadFromStream(stream));
System\Drawing\Design\FontNameEditorTests.cs (1)
86using (Bitmap bitmap = new(1, 1))
System\Drawing\Design\ImageEditorTests.cs (6)
132using Bitmap image = new(10, 10); 135Bitmap result = Assert.IsType<Bitmap>(editor.LoadFromStream(stream)); 162using Bitmap image = new(10, 10); 163using Bitmap otherImage = new(3, 2); 187using Bitmap image = new(10, 10);
System\Drawing\Design\MetafileEditorTests.cs (1)
59using Bitmap image = new(10, 10);
System\Drawing\Design\ToolboxItemTests.cs (10)
108public void ToolboxItem_Bitmap_Set_GetReturnsExpected(Bitmap value) 319public void ToolboxItem_OriginalBitmap_Set_GetReturnsExpected(Bitmap value) 1339using Bitmap bitmap = new(10, 10); 1340using Bitmap originalBitmap = new(10, 10); 1385using Bitmap bitmap = new(10, 10); 1386using Bitmap originalBitmap = new(10, 10); 1414using Bitmap bitmap = new(10, 10); 1415using Bitmap originalBitmap = new(10, 10); 1539Bitmap bitmap = new(10, 10); 1543Bitmap originalBitmap = new(10, 10);
System\Resources\Tools\CodeDomCompileHelper.cs (1)
30MetadataReference.CreateFromFile(typeof(Bitmap).Assembly.Location),
System\Resources\Tools\StronglyTypedResourceBuilderTests.cs (10)
319using Bitmap expected = (Bitmap)Image.FromFile(@"Resources\Image1.png"); 320ValidateResultBitmap(imagePropertyInfo, expected, TypeDescriptor.GetConverter(typeof(Bitmap))); 326using Bitmap bitmap = new(10, 10); 375using Bitmap expected = (Bitmap)Image.FromFile(@"Resources\Image1.png"); 376ValidateResultBitmap(imagePropertyInfo, expected, TypeDescriptor.GetConverter(typeof(Bitmap))); 675private static void ValidateResultBitmap(PropertyInfo imagePropertyInfo, Bitmap expected, TypeConverter converter) 678using Bitmap resourceBitmap = Assert.IsType<Bitmap>(converter.ConvertFrom(resourceBytes));
System\Windows\Forms\Design\DataSourceDescriptorCollectionTests.cs (1)
107public override Bitmap Image => new(1, 1);
System\Windows\Forms\Design\DataSourceGroupCollectionTests.cs (1)
102public override Bitmap Image => new(1, 1);
System\Windows\Forms\Design\DesignBindingValueUIHandlerTests.cs (1)
20using Bitmap bitmap = new(10, 10);
System\Windows\Forms\Design\EmbeddedResourceTests.cs (1)
108using Bitmap bitmap = new(stream);
System\Windows\Forms\Design\ImageIndexEditorTests.cs (1)
33using Bitmap bitmap = new(10, 10);
System\Windows\Forms\Design\ImageListImageEditorTests.cs (3)
20using Bitmap image = new(10, 10); 25var resultImage = Assert.IsType<Bitmap>(result.Image);
System\Windows\Forms\Design\ImageListImageTests.cs (5)
13using Bitmap bitmap = new(10, 10); 23using Bitmap bitmap = new(10, 10); 34using Bitmap bitmap = new(10, 10); 47using Bitmap bitmap = new(10, 10); 59using Bitmap bitmap = new(10, 10);
System\Windows\Forms\Design\InheritanceUITests.cs (2)
93Bitmap glyph = InheritanceUI.InheritanceGlyph; 96glyph.Should().NotBeNull().And.BeOfType<Bitmap>();
System\Windows\Forms\Design\ItemTypeToolStripMenuItemTests.cs (1)
34_item.Image.Should().BeOfType<Bitmap>().Which.Should().Be(ToolStripDesignerUtils.GetToolboxBitmap(typeof(string)));
System\Windows\Forms\Design\ToolStripDesignerUtilsTests.cs (1)
43Bitmap bitmap = ToolStripDesignerUtils.GetToolboxBitmap(itemType);
System\Windows\Forms\Design\VsPropertyGridTests.cs (6)
16using Bitmap sortPropertyImage = propertyGrid.GetSortByPropertyImage(); 18using Bitmap sortCategoryImage = propertyGrid.GetSortByCategoryImage(); 20using Bitmap showPageImage = propertyGrid.GetShowPropertyPageImage(); 26public Bitmap GetSortByPropertyImage() => SortByPropertyImage; 27public Bitmap GetSortByCategoryImage() => SortByCategoryImage; 28public Bitmap GetShowPropertyPageImage() => ShowPropertyPageImage;
System.Windows.Forms.Primitives (26)
System\Windows\Forms\Internals\ScaleHelper.cs (25)
125/// Copies the given <see cref="Bitmap"/>, scaling if needed. 127/// <inheritdoc cref="ScaleToSize(Bitmap, Size, bool, bool)"/> 128internal static Bitmap CopyAndScaleToSize(Bitmap bitmap, Size desiredSize) 132/// Scales the given <see cref="Bitmap"/> to the desired size if needed. 140private static Bitmap ScaleToSize(Bitmap bitmap, Size desiredSize, bool disposeBitmap = false, bool alwaysCopy = false) 147Bitmap copy = new(bitmap); 177Bitmap scaledBitmap = new(desiredSize.Width, desiredSize.Height, bitmap.PixelFormat); 179using (Bitmap? dispose = disposeBitmap ? bitmap : null) 204/// Scales a logical (100%) <see cref="Bitmap"/> value to the specified DPI. 206/// <param name="logicalBitmap"><see cref="Bitmap"/> in logical units (pixels at 100%).</param> 207/// <returns>Scaled <see cref="Bitmap"/>.</returns> 208internal static Bitmap ScaleToDpi(Bitmap logicalBitmap, int dpi, bool disposeBitmap = false) => 316/// Gets the given icon resource as a <see cref="Bitmap"/> at the default icon size. 318internal static Bitmap GetIconResourceAsDefaultSizeBitmap(Type type, string resource) => 322/// Gets the given small icon (usually 16x16) resource as a <see cref="Bitmap"/> scaled to the specified dpi. 324internal static Bitmap GetSmallIconResourceAsBitmap(Type type, string resource, int dpi) => 328/// Gets the given icon resource as a <see cref="Bitmap"/> of the given size. 330internal static Bitmap GetIconResourceAsBitmap(Type type, string resource, Size size) 344/// Gets the given icon resource that is closest to the given size as a <see cref="Bitmap"/>. 346internal static Bitmap GetIconResourceAsBestMatchBitmap(Stream resourceStream, Size size) 355/// Gets the given icon resource that is closest to the given size as a <see cref="Bitmap"/>. 357internal static Bitmap GetIconResourceAsBestMatchBitmap(Type type, string resource, Size size)
System\Windows\Forms\SystemDrawingExtensions.cs (1)
13internal static HBITMAP GetHBITMAP(this Bitmap bitmap) => (HBITMAP)bitmap.GetHbitmap();
System.Windows.Forms.Primitives.Tests (26)
Interop\Ole32\IPictureTests.cs (4)
37using Bitmap bitmap = icon.ToBitmap(); 53using Bitmap bitmap = icon.ToBitmap(); 73using Bitmap bitmap = icon.ToBitmap(); 84using Bitmap bitmap = new(100, 200);
Interop\Oleaut32\ITypeInfoTests.cs (16)
18using Bitmap image = new(16, 32); 32using Bitmap image = new(16, 32); 46using Bitmap image = new(16, 32); 62using Bitmap image = new(16, 32); 82using Bitmap image = new(16, 32); 102using Bitmap image = new(16, 32); 136using Bitmap image = new(16, 32); 160using Bitmap image = new(16, 32); 174using Bitmap image = new(16, 32); 188using Bitmap image = new(16, 32); 210using Bitmap image = new(16, 32); 227using Bitmap image = new(16, 32); 241using Bitmap image = new(16, 32); 280using Bitmap image = new(16, 32); 293using Bitmap image = new(16, 32); 322using Bitmap image = new(16, 32);
System\Windows\Forms\DeviceContextHdcScopeTests.cs (2)
15using Bitmap b = new(10, 10); 248using Bitmap b = new(10, 10);
Windows\Win32\System\Com\IDispatchTests.cs (4)
16using Bitmap image = new(16, 32); 40using Bitmap image = new(16, 16); 51using Bitmap image = new(16, 16); 63using Bitmap image = new(16, 32);
System.Windows.Forms.Tests (894)
CheckedListBoxTests.cs (6)
421using Bitmap image = new(10, 10); 443using Bitmap image = new(10, 10); 464using Bitmap image = new(10, 10); 475using Bitmap image = new(10, 10); 488using Bitmap image = new(10, 10); 815using Bitmap image = new(10, 10);
System\Drawing\Design\PaintValueEventArgsTests.cs (1)
24using Bitmap image = new(10, 10);
System\Drawing\Design\PropertyValueUIItemTests.cs (1)
39using Bitmap uiItemImage = new(10, 10);
System\Drawing\Design\UITypeEditorTests.cs (4)
102Bitmap bitmap = new(10, 10); 112using Bitmap image = new(10, 10); 120Bitmap bitmap = new(10, 10); 134using (Bitmap image = new(10, 10))
System\Resources\ResxDataNodeTests.cs (6)
27using Bitmap bitmap = new(10, 10); 34Bitmap result = Assert.IsType<Bitmap>(converter.ConvertFrom(bitmapBytes!)); 41using Bitmap bitmap = new(10, 10); 49var result = Assert.IsType<Bitmap>(converter.ConvertFrom(bitmapBytes!));
System\Resources\ResXFileRef.ConverterTests.cs (4)
119var bitmapResult = (Bitmap)converter.ConvertFrom(null, null, bitmapIconRefString); 130var result = (Bitmap)converter.ConvertFrom(null, null, resxFileRefString);
System\Windows\Forms\AccessibleObjects\ToolStripDropDownButton.ToolStripDropDownButtonAccessibleObjectTests.cs (2)
103using Bitmap image = new(10, 10); 109static ToolStripDropDownButton CreateToolStripDropDownButton(string text = null, Bitmap image = null, EventHandler onClick = null, string name = null, ToolStripItem[] dropDownItems = null)
System\Windows\Forms\AxHostTests.cs (6)
1609Bitmap original = new(10, 11); 1625var result = Assert.IsType<Bitmap>(SubAxHost.GetPictureFromIPictureDisp(disp)); 1669Bitmap original = new(10, 11); 1690var result = Assert.IsType<Bitmap>(SubAxHost.GetPictureFromIPicture(iPicture));
System\Windows\Forms\BinaryFormat\WinFormsBinaryFormattedObjectTests.cs (17)
122using Bitmap bitmap = new(10, 10); 125root.TypeNameMatches(typeof(Bitmap)).Should().BeTrue(); 126root.TypeName.FullName.Should().Be(typeof(Bitmap).FullName); 132using Bitmap deserialized = result.Should().BeOfType<Bitmap>().Which; 139using Bitmap bitmap = new(10, 10); 148using Bitmap deserialized = result.Should().BeOfType<Bitmap>().Which; 155using Bitmap bitmap = new(10, 10); 168using Bitmap deserialized = binaryFormat.Deserialize(stream).Should().BeOfType<Bitmap>().Which; // CodeQL [SM03722] : Testing legacy feature. This is a safe use of BinaryFormatter because the data is trusted and the types are controlled and validated. 176using Bitmap image = new(10, 10); 192Bitmap newImage = (Bitmap)newList.Images[0]; 200using Bitmap image = new(10, 10); 215Bitmap newImage = (Bitmap)newList.Images[0];
System\Windows\Forms\ButtonBaseTests.cs (13)
1434using Bitmap value = new(10, 10); 1458using Bitmap value = new(10, 10); 1484using Bitmap value = new(10, 10); 1782using Bitmap image = new(10, 10); 1801using Bitmap image = new(10, 10); 1829using Bitmap image = new(10, 10); 2079using Bitmap image = new(10, 10); 2153using Bitmap image1 = new(10, 10); 2154using Bitmap image2 = new(10, 10); 2238using Bitmap image = new(10, 10); 2304using Bitmap image1 = new(10, 10); 2305using Bitmap image2 = new(10, 10); 2387using Bitmap image = new(10, 10);
System\Windows\Forms\ButtonTests.cs (2)
3425using Bitmap image = new(10, 10); 3498using Bitmap image = new(10, 10);
System\Windows\Forms\ClipboardTests.cs (4)
390using Bitmap bitmap = new(10, 10); 445using Bitmap bitmap = new(10, 10); 449var result = Clipboard.GetImage().Should().BeOfType<Bitmap>().Subject;
System\Windows\Forms\ColumnHeaderTests.cs (8)
374using Bitmap image1 = new(10, 10); 375using Bitmap image2 = new(10, 10); 460using Bitmap image1 = new(10, 10); 461using Bitmap image2 = new(10, 10); 593using Bitmap image1 = new(10, 10); 594using Bitmap image2 = new(10, 10); 682using Bitmap image1 = new(10, 10); 683using Bitmap image2 = new(10, 10);
System\Windows\Forms\ComboBoxTests.cs (10)
387using Bitmap bitmap = new(100, 100); 530using Bitmap image1 = new(10, 10); 541using Bitmap image2 = new(10, 10); 725using Bitmap bitmap = new(1, 1); 748using Bitmap bitmap = new(1, 1); 768using Bitmap bitmap = new(1, 1); 1969using Bitmap image = new(10, 10); 2006using Bitmap image = new(10, 10); 2066using Bitmap image = new(10, 10); 2110using Bitmap image = new(10, 10);
System\Windows\Forms\ComponentModel\Com2Interop\COM2PictureConverterTests.cs (6)
96using Bitmap errorBitmap = errorIcon.ToBitmap(); 102using Bitmap bitmap = (Bitmap)Instance.ConvertNativeToManaged((VARIANT)unknown.Value, property: null); 106Assert.Equal(typeof(Bitmap), Instance.ManagedType); 109Assert.Same(bitmap, (Bitmap)Instance.ConvertNativeToManaged((VARIANT)unknown.Value, property: null)); 161using Bitmap bitmap = new(42, 70);
System\Windows\Forms\ComponentModel\Com2Interop\ComNativeDescriptorTests.cs (3)
25using Bitmap bitmap = new(10, 20); 35using Bitmap bitmap = new(10, 20); 84using Bitmap bitmap = new(10, 20);
System\Windows\Forms\ControlPaintTests.cs (86)
34public void ControlPaint_CreateHBitmap16Bit_Invoke_ReturnsExpected(Bitmap bitmap, Color background) 42using Bitmap result = Image.FromHbitmap((IntPtr)hBitmap); 56using Bitmap bitmap = new(3, 1); 67using Bitmap result = Image.FromHbitmap((IntPtr)hBitmap); 105public void ControlPaint_CreateHBitmapColorMask_Invoke_ReturnsExpected(Bitmap bitmap, IntPtr monochromeMask) 113using Bitmap result = Image.FromHbitmap((IntPtr)hBitmap); 127using Bitmap mask = new(3, 1); 134using Bitmap bitmap = new(3, 1); 145using Bitmap result = Image.FromHbitmap((IntPtr)hBitmap); 167using Bitmap bitmap = new(3, 1); 178using Bitmap result = Image.FromHbitmap((IntPtr)hBitmap); 213public void ControlPaint_CreateHBitmapTransparencyMask_Invoke_ReturnsExpected(Bitmap bitmap) 221using Bitmap result = Image.FromHbitmap((IntPtr)hBitmap); 235using Bitmap bitmap = new(3, 1); 246using Bitmap result = Image.FromHbitmap((IntPtr)hBitmap); 276using Bitmap bitmap = new(1, 1); 279using Bitmap invertedBitmap = ControlPaint.CreateBitmapWithInvertedForeColor(bitmap, Color.LightGray); 563using Bitmap image = new(10, 10); 576using Bitmap image = new(10, 10); 622using Bitmap image = new(10, 10); 664using Bitmap image = new(10, 10); 702using Bitmap image = new(10, 10); 727using Bitmap image = new(10, 10); 755using Bitmap image = new(10, 10); 767using Bitmap image = new(10, 10); 779using Bitmap image = new(10, 10); 791using Bitmap image = new(10, 10); 827using Bitmap image = new(10, 10); 839using Bitmap image = new(10, 10); 865using Bitmap image = new(10, 10); 876using Bitmap image = new(10, 10); 887using Bitmap image = new(10, 10); 911using Bitmap image = new(10, 10); 923using Bitmap image = new(10, 10); 948using Bitmap image = new(10, 10); 959using Bitmap image = new(10, 10); 970using Bitmap image = new(10, 10); 991using Bitmap image = new(10, 10); 1003using Bitmap image = new(10, 10); 1029using Bitmap image = new(10, 10); 1040using Bitmap image = new(10, 10); 1051using Bitmap image = new(10, 10); 1072using Bitmap image = new(10, 10); 1084using Bitmap image = new(10, 10); 1109using Bitmap image = new(10, 10); 1120using Bitmap image = new(10, 10); 1131using Bitmap image = new(10, 10); 1151using Bitmap image = new(10, 10); 1179using Bitmap image = new(10, 10); 1210using Bitmap image = new(10, 10); 1245using Bitmap image = new(10, 10); 1282using Bitmap image = new(10, 10); 1303using Bitmap image = new(10, 10); 1331using Bitmap sourceImage = new(10, 10); 1342using Bitmap image = new(10, 10); 1349using Bitmap image = new(10, 10); 1371using Bitmap image = new(10, 10); 1402using Bitmap image = new(10, 10); 1434using Bitmap image = new(10, 10); 1446using Bitmap image = new(10, 10); 1458using Bitmap image = new(10, 10); 1488using Bitmap image = new(10, 10); 1500using Bitmap image = new(10, 10); 1512using Bitmap image = new(10, 10); 1533using Bitmap image = new(10, 10); 1545using Bitmap image = new(10, 10); 1570using Bitmap image = new(10, 10); 1581using Bitmap image = new(10, 10); 1592using Bitmap image = new(10, 10); 1613using Bitmap image = new(10, 10); 1625using Bitmap image = new(10, 10); 1650using Bitmap image = new(10, 10); 1661using Bitmap image = new(10, 10); 1672using Bitmap image = new(10, 10); 1751using Bitmap image = new(10, 10); 1763using Bitmap image = new(10, 10); 1788using Bitmap image = new(10, 10); 1799using Bitmap image = new(10, 10); 1810using Bitmap image = new(10, 10); 1836using Bitmap image = new(10, 10); 1871using Bitmap image = new(10, 10); 1883using Bitmap image = new(10, 10); 1919using Bitmap image = new(10, 10); 1931using Bitmap image = new(10, 10); 1967using Bitmap image = new(10, 10); 1996using Bitmap image = new(10, 10);
System\Windows\Forms\ControlTests.Handlers.cs (10)
3856using Bitmap image = new(10, 10); 3978using Bitmap image = new(10, 10); 4028using Bitmap image = new(10, 10); 4105using Bitmap image = new(10, 10); 4279Bitmap image = new(10, 10); 4638using Bitmap image = new(10, 10); 4657using Bitmap image = new(10, 10); 4696using Bitmap image = new(10, 10); 4725using Bitmap image = new(10, 10); 4761using Bitmap image = new(10, 10);
System\Windows\Forms\ControlTests.Methods.cs (12)
1849using Bitmap bitmap = new(20, 20); 1871using Bitmap bitmap = new(20, 20); 1900using Bitmap bitmap = new(10, 10); 1914using Bitmap bitmap = new(10, 10); 1928using Bitmap bitmap = new(10, 10); 4264using Bitmap image = new(10, 10); 4273using Bitmap image = new(10, 10); 4320using Bitmap image = new(10, 10); 12862using Bitmap image = new(10, 10); 12957using Bitmap image = new(10, 10); 13204using Bitmap image = new(10, 10); 13321using Bitmap image = new(10, 10);
System\Windows\Forms\ControlTests.Properties.cs (11)
1713using Bitmap image1 = new(10, 10); 1714using Bitmap image2 = new(10, 10); 1753Bitmap image1 = new(10, 10); 1764Bitmap image2 = new(10, 10); 1795Bitmap value = new(10, 10); 1842Bitmap image1 = new(10, 10); 1861Bitmap image2 = new(10, 10); 1895using Bitmap childBackgroundImage1 = new(10, 10); 1896using Bitmap childBackgroundImage2 = new(10, 10); 1935Bitmap image1 = new(10, 10); 1954Bitmap image2 = new(10, 10);
System\Windows\Forms\CursorTests.cs (6)
381using Bitmap image = new(10, 10); 391using Bitmap image = new(10, 10); 407using Bitmap image = new(10, 10); 418using Bitmap image = new(10, 10); 428using Bitmap image = new(10, 10); 444using Bitmap image = new(10, 10);
System\Windows\Forms\DataGridViewCellPaintingEventArgsTests.cs (16)
23using Bitmap image = new(10, 10); 46using Bitmap image = new(10, 10); 61using Bitmap image = new(10, 10); 71using Bitmap image = new(10, 10); 82using Bitmap image = new(10, 10); 93using Bitmap image = new(10, 10); 106using Bitmap image = new(10, 10); 119using Bitmap image = new(10, 10); 132using Bitmap image = new(10, 10); 143using Bitmap image = new(10, 10); 156using Bitmap image = new(10, 10); 169using Bitmap image = new(10, 10); 182using Bitmap image = new(10, 10); 193using Bitmap image = new(10, 10); 206using Bitmap image = new(10, 10); 219using Bitmap image = new(10, 10);
System\Windows\Forms\DataGridViewCellTests.cs (26)
3679using Bitmap image = new(10, 10); 3831using Bitmap image = new(10, 10); 5254using Bitmap image = new(10, 10); 5269using Bitmap image = new(10, 10); 5291using Bitmap image = new(10, 10); 5304using Bitmap image = new(10, 10); 5316using Bitmap image = new(10, 10); 5328using Bitmap image = new(10, 10); 5342using Bitmap image = new(10, 10); 5356using Bitmap image = new(10, 10); 5366using Bitmap image = new(10, 10); 5375using Bitmap image = new(10, 10); 5384using Bitmap image = new(10, 10); 5398using Bitmap image = new(10, 10); 5412using Bitmap image = new(10, 10); 5421using Bitmap image = new(10, 10); 5430using Bitmap image = new(10, 10); 5444using Bitmap image = new(10, 10); 5458using Bitmap image = new(10, 10); 5468using Bitmap image = new(10, 10); 5477using Bitmap image = new(10, 10); 6020using Bitmap image = new(10, 10); 6028using Bitmap image = new(10, 10); 6044using Bitmap image = new(10, 10); 6054using Bitmap image = new(10, 10); 6064using Bitmap image = new(10, 10);
System\Windows\Forms\DataGridViewHeaderCellTests.cs (1)
4620using Bitmap image = new(10, 10);
System\Windows\Forms\DataGridViewRowPostPaintEventArgsTests.cs (15)
23using Bitmap image = new(10, 10); 42using Bitmap image = new(10, 10); 57using Bitmap image = new(10, 10); 74using Bitmap image = new(10, 10); 87using Bitmap image = new(10, 10); 100using Bitmap image = new(10, 10); 111using Bitmap image = new(10, 10); 124using Bitmap image = new(10, 10); 135using Bitmap image = new(10, 10); 148using Bitmap image = new(10, 10); 159using Bitmap image = new(10, 10); 172using Bitmap image = new(10, 10); 183using Bitmap image = new(10, 10); 196using Bitmap image = new(10, 10); 209using Bitmap image = new(10, 10);
System\Windows\Forms\DataGridViewRowPrePaintEventArgsTests.cs (17)
14Bitmap image = new(10, 10); 43using Bitmap image = new(10, 10); 58using Bitmap image = new(10, 10); 75using Bitmap image = new(10, 10); 90using Bitmap image = new(10, 10); 104using Bitmap image = new(10, 10); 114using Bitmap image = new(10, 10); 127using Bitmap image = new(10, 10); 138using Bitmap image = new(10, 10); 151using Bitmap image = new(10, 10); 162using Bitmap image = new(10, 10); 175using Bitmap image = new(10, 10); 186using Bitmap image = new(10, 10); 199using Bitmap image = new(10, 10); 210using Bitmap image = new(10, 10); 223using Bitmap image = new(10, 10); 236using Bitmap image = new(10, 10);
System\Windows\Forms\DataGridViewRowTests.cs (38)
4198using Bitmap image = new(10, 10); 4214using Bitmap image = new(10, 10); 4237using Bitmap image = new(10, 10); 4594using Bitmap image = new(10, 10); 4618using Bitmap image = new(10, 10); 4644using Bitmap image = new(10, 10); 4668using Bitmap image = new(10, 10); 4692using Bitmap image = new(10, 10); 4716using Bitmap image = new(10, 10); 4740using Bitmap image = new(10, 10); 4765using Bitmap image = new(10, 10); 4790using Bitmap image = new(10, 10); 4798using Bitmap image = new(10, 10); 4875using Bitmap image = new(10, 10); 5001using Bitmap image = new(10, 10); 5040using Bitmap image = new(10, 10); 5064using Bitmap image = new(10, 10); 5090using Bitmap image = new(10, 10); 5114using Bitmap image = new(10, 10); 5138using Bitmap image = new(10, 10); 5162using Bitmap image = new(10, 10); 5186using Bitmap image = new(10, 10); 5211using Bitmap image = new(10, 10); 5236using Bitmap image = new(10, 10); 5310using Bitmap image = new(10, 10); 5329using Bitmap image = new(10, 10); 5360using Bitmap image = new(10, 10); 5384using Bitmap image = new(10, 10); 5410using Bitmap image = new(10, 10); 5434using Bitmap image = new(10, 10); 5458using Bitmap image = new(10, 10); 5482using Bitmap image = new(10, 10); 5506using Bitmap image = new(10, 10); 5531using Bitmap image = new(10, 10); 5556using Bitmap image = new(10, 10); 5633using Bitmap image = new(10, 10); 5649using Bitmap image = new(10, 10); 5667using Bitmap image = new(10, 10);
System\Windows\Forms\DataGridViewTests.cs (2)
3488using Bitmap bitMap1 = new(10, 10); 3489using Bitmap bitMap2 = new(20, 20);
System\Windows\Forms\DataObjectExtensionsTests.cs (2)
82dataObject.TryGetData(DataFormats.Dib, out Bitmap? bitmap).Should().BeFalse(); 116dataObject.TryGetData(DataFormats.Dib, out Bitmap? _).Should().BeFalse();
System\Windows\Forms\DataObjectTests.ClipboardTests.cs (8)
82if (string.IsNullOrWhiteSpace(format) || format == typeof(Bitmap).FullName || format.StartsWith("FileName", StringComparison.Ordinal)) 91theoryData.Add(typeof(Bitmap).FullName!, null, false, true); 92theoryData.Add(typeof(Bitmap).FullName!, "input", false, true); 135if (string.IsNullOrWhiteSpace(format) || format == typeof(Bitmap).FullName || format.StartsWith("FileName", StringComparison.Ordinal)) 147theoryData.Add(typeof(Bitmap).FullName!, false, null, false, false); 148theoryData.Add(typeof(Bitmap).FullName!, false, "input", false, false); 149theoryData.Add(typeof(Bitmap).FullName!, true, null, false, true); 150theoryData.Add(typeof(Bitmap).FullName!, true, "input", false, true);
System\Windows\Forms\DataObjectTests.cs (36)
773using Bitmap bitmap1 = new(10, 10); 777using Bitmap bitmap2 = new(10, 10); 847using Bitmap bitmap1 = new(10, 10); 852using Bitmap bitmap2 = new(10, 10); 895Bitmap image = new(10, 10); 1160{ new Bitmap(10, 10), typeof(Bitmap).FullName }, 1245if (string.IsNullOrWhiteSpace(format) || format == typeof(Bitmap).FullName || format.StartsWith("FileName", StringComparison.Ordinal)) 1254theoryData.Add(typeof(Bitmap).FullName, null, false, true); 1255theoryData.Add(typeof(Bitmap).FullName, "input", false, true); 1335using Bitmap image = new(10, 10); 1342dataObject.GetData(typeof(Bitmap).FullName, autoConvert: true).Should().BeSameAs(image); 1343dataObject.GetData(typeof(Bitmap).FullName, autoConvert: false).Should().BeNull(); 1350dataObject.GetDataPresent(typeof(Bitmap).FullName, autoConvert: true).Should().BeTrue(); 1351dataObject.GetDataPresent(typeof(Bitmap).FullName, autoConvert: false).Should().BeFalse(); 1387if (string.IsNullOrWhiteSpace(format) || format == typeof(Bitmap).FullName || format.StartsWith("FileName", StringComparison.Ordinal)) 1399theoryData.Add(typeof(Bitmap).FullName, false, null, false, false); 1400theoryData.Add(typeof(Bitmap).FullName, false, "input", false, false); 1401theoryData.Add(typeof(Bitmap).FullName, true, null, false, true); 1402theoryData.Add(typeof(Bitmap).FullName, true, "input", false, true); 1488using Bitmap image = new(10, 10); 1495dataObject.GetData(typeof(Bitmap).FullName, autoConvert: true).Should().BeSameAs(image); 1496dataObject.GetData(typeof(Bitmap).FullName, autoConvert: false).Should().BeNull(); 1503dataObject.GetDataPresent(typeof(Bitmap).FullName, autoConvert: true).Should().BeTrue(); 1504dataObject.GetDataPresent(typeof(Bitmap).FullName, autoConvert: false).Should().BeFalse(); 1669using Bitmap image = new(10, 10); 1676dataObject.GetData(typeof(Bitmap).FullName, autoConvert: true).Should().BeSameAs(image); 1677dataObject.GetData(typeof(Bitmap).FullName, autoConvert: false).Should().BeNull(); 1684dataObject.GetDataPresent(typeof(Bitmap).FullName, autoConvert: true).Should().BeTrue(); 1685dataObject.GetDataPresent(typeof(Bitmap).FullName, autoConvert: false).Should().BeFalse(); 1693using Bitmap image = new(10, 10); 1709using Bitmap image = new(10, 10); 2890using Bitmap bitmap = new(10, 10); 2899data.GetDataPresent(typeof(Bitmap)).Should().BeTrue(); 2902data.GetFormats().Should().BeEquivalentTo([typeof(Bitmap).FullName, nameof(Bitmap), customFormat]); 3138dataObject.TryGetData("test", out Bitmap data).Should().BeFalse();
System\Windows\Forms\DateTimePickerTests.cs (4)
546using (Bitmap bmp = new(1, 1)) 554using (Bitmap bmp = new(1, 1)) 720using (Bitmap bmp = new(10, 10)) 728using (Bitmap bmp = new(20, 20))
System\Windows\Forms\Design\PropertyTabTests.cs (3)
29Bitmap bitmap = tab.Bitmap; 54Bitmap bitmap = tab.Bitmap; 96Bitmap bitmap = tab.Bitmap;
System\Windows\Forms\DragDropHelperTests.cs (3)
112public unsafe void SetDragImage_DataObject_Bitmap_Point_bool_ReturnsExpected(DataObject dataObject, Bitmap dragImage, Point cursorOffset, bool useDefaultDragImage) 168using Bitmap bitmap = new(1, 1); 176using Bitmap bitmap = new(1, 1);
System\Windows\Forms\DrawItemEventArgsTests.cs (4)
26using Bitmap image = new(10, 10); 51using Bitmap image = new(10, 10); 91using Bitmap image = new(10, 10); 101using Bitmap image = new(10, 10);
System\Windows\Forms\DrawListViewColumnHeaderEventArgsTests.cs (6)
25using Bitmap image = new(10, 10); 49using Bitmap image = new(10, 10); 77using Bitmap image = new(10, 10); 89using Bitmap image = new(10, 10); 99using Bitmap image = new(10, 10); 115using Bitmap image = new(10, 10);
System\Windows\Forms\DrawListViewItemEventArgsTests.cs (7)
25using Bitmap image = new(10, 10); 46using Bitmap image = new(10, 10); 55using Bitmap image = new(10, 10); 114using Bitmap image = new(10, 10); 124using Bitmap image = new(10, 10); 134using Bitmap image = new(10, 10); 144using Bitmap image = new(10, 10);
System\Windows\Forms\DrawListViewSubItemEventArgsTests.cs (6)
26using Bitmap image = new(10, 10); 49using Bitmap image = new(10, 10); 59using Bitmap image = new(10, 10); 68using Bitmap image = new(10, 10); 118using Bitmap image = new(10, 10); 128using Bitmap image = new(10, 10);
System\Windows\Forms\DrawToolTipEventArgsTests.cs (5)
24using Bitmap image = new(10, 10); 49using Bitmap image = new(10, 10); 59using Bitmap image = new(10, 10); 69using Bitmap image = new(10, 10); 79using Bitmap image = new(10, 10);
System\Windows\Forms\DrawTreeNodeEventArgsTests.cs (2)
24using Bitmap image = new(10, 10); 38using Bitmap image = new(10, 10);
System\Windows\Forms\GiveFeedbackEventArgsTests.cs (1)
42public void DragImage_Set_GetReturnsExpected(Bitmap value)
System\Windows\Forms\GroupBoxTests.cs (6)
1851using Bitmap image = new(10, 10); 1889using Bitmap image = new(10, 10); 2089using Bitmap image = new(10, 10); 2127using Bitmap image = new(10, 10); 2190using Bitmap image = new(10, 10); 2235using Bitmap image = new(10, 10);
System\Windows\Forms\ImageList.ImageCollectionTests.cs (139)
52using Bitmap image1bppIndexed = new(1, 2, PixelFormat.Format24bppRgb); 53using Bitmap image24bppRGb = new(3, 4, PixelFormat.Format24bppRgb); 54using Bitmap image32bppRGb = new(5, 6, PixelFormat.Format32bppRgb); 55using Bitmap image32bppArgbNotTransparent = new(7, 8, PixelFormat.Format32bppArgb); 56using Bitmap image32bppArgbTransparent = new(9, 10, PixelFormat.Format32bppArgb); 66Bitmap bitmap1 = Assert.IsType<Bitmap>(collection[0]); 71Bitmap bitmap2 = Assert.IsType<Bitmap>(collection[1]); 76Bitmap bitmap3 = Assert.IsType<Bitmap>(collection[2]); 81Bitmap bitmap4 = Assert.IsType<Bitmap>(collection[3]); 86Bitmap bitmap5 = Assert.IsType<Bitmap>(collection[4]); 100using Bitmap image1bppIndexed = new(1, 2, PixelFormat.Format24bppRgb); 101using Bitmap image24bppRGb = new(3, 4, PixelFormat.Format24bppRgb); 102using Bitmap image32bppRGb = new(5, 6, PixelFormat.Format32bppRgb); 103using Bitmap image32bppArgbNotTransparent = new(7, 8, PixelFormat.Format32bppArgb); 104using Bitmap image32bppArgbTransparent = new(9, 10, PixelFormat.Format32bppArgb); 114Bitmap bitmap1 = Assert.IsType<Bitmap>(collection[0]); 119Bitmap bitmap2 = Assert.IsType<Bitmap>(collection[1]); 124Bitmap bitmap3 = Assert.IsType<Bitmap>(collection[2]); 129Bitmap bitmap4 = Assert.IsType<Bitmap>(collection[3]); 134Bitmap bitmap5 = Assert.IsType<Bitmap>(collection[4]); 188using Bitmap imageFiller1 = new(16, 16, pixelFormat); 189using Bitmap imageFiller2 = new(16, 16, pixelFormat); 191using Bitmap image = new(16, 16, pixelFormat); 209Bitmap resultImage = Assert.IsType<Bitmap>(collection[1]); 233using Bitmap image = new(10, 10); 249Bitmap bitmap = new(16, 16); 261using Bitmap image = new(10, 10); 272Bitmap bitmap = Assert.IsType<Bitmap>(collection[0]); 282using Bitmap image = new(10, 10); 294Bitmap bitmap = Assert.IsType<Bitmap>(collection[0]); 315using Bitmap image = new(10, 10); 325using Bitmap image = new(10, 10); 336using Bitmap image = new(10, 10); 352using Bitmap image1 = new(1, 2); 354using Bitmap image2 = new(3, 4); 360Bitmap result1 = Assert.IsType<Bitmap>(collection[key]); 363Assert.Equal(((Bitmap)collection[expectedIndex]).GetPixel(0, 0), result1.GetPixel(0, 0)); 366Bitmap result2 = Assert.IsType<Bitmap>(collection[key]); 384using Bitmap image1 = new(1, 2); 385using Bitmap image2 = new(3, 4); 429Bitmap bitmap = new(16, 16); 586Bitmap bitmap = new(16, 16); 897Bitmap bitmap = new(16, 16); 954using Bitmap image = new(width, 16); 966using Bitmap image = new(16, width); 994using Bitmap image = new(10, 10); 1037using Bitmap image = new(10, 10); 1085using Bitmap image1 = new(1, 2); 1086using Bitmap image2 = new(3, 4); 1087using Bitmap image3 = new(5, 6); 1157using Bitmap image1 = new(1, 2); 1159using Bitmap image2 = new(3, 4); 1172Bitmap result1 = Assert.IsType<Bitmap>(enumerator.Current); 1175Assert.Equal(((Bitmap)collection[0]).GetPixel(0, 0), result1.GetPixel(0, 0)); 1178Bitmap result2 = Assert.IsType<Bitmap>(enumerator.Current); 1181Assert.Equal(((Bitmap)collection[1]).GetPixel(0, 0), result2.GetPixel(0, 0)); 1194using Bitmap image1 = new(1, 2); 1196using Bitmap image2 = new(3, 4); 1210Bitmap result1 = Assert.IsType<Bitmap>(enumerator.Current); 1213Assert.Equal(((Bitmap)collection[0]).GetPixel(0, 0), result1.GetPixel(0, 0)); 1216Bitmap result2 = Assert.IsType<Bitmap>(enumerator.Current); 1219Assert.Equal(((Bitmap)collection[1]).GetPixel(0, 0), result2.GetPixel(0, 0)); 1241using Bitmap image1 = new(1, 2); 1242using Bitmap image2 = new(3, 4); 1243using Bitmap image3 = new(5, 6); 1306using Bitmap image1 = new(1, 2); 1308using Bitmap image2 = new(3, 4); 1310using Bitmap image3 = new(3, 4); 1340using Bitmap image1 = new(1, 2); 1342using Bitmap image2 = new(3, 4); 1344using Bitmap image3 = new(3, 4); 1350Color color1 = ((Bitmap)collection[0]).GetPixel(0, 0); 1351Color color2 = ((Bitmap)collection[1]).GetPixel(0, 0); 1352Color color3 = ((Bitmap)collection[2]).GetPixel(0, 0); 1360Assert.Equal(color1, ((Bitmap)collection[0]).GetPixel(0, 0)); 1361Assert.Equal(color3, ((Bitmap)collection[1]).GetPixel(0, 0)); 1368Assert.Equal(color3, ((Bitmap)collection[0]).GetPixel(0, 0)); 1393using Bitmap image = new(10, 10); 1404using Bitmap image1 = new(1, 2); 1406using Bitmap image2 = new(3, 4); 1408using Bitmap image3 = new(3, 4); 1444using Bitmap image1 = new(1, 2); 1446using Bitmap image2 = new(3, 4); 1448using Bitmap image3 = new(3, 4); 1454Color color1 = ((Bitmap)collection[0]).GetPixel(0, 0); 1455Color color2 = ((Bitmap)collection[1]).GetPixel(0, 0); 1456Color color3 = ((Bitmap)collection[2]).GetPixel(0, 0); 1464Assert.Equal(color1, ((Bitmap)collection[0]).GetPixel(0, 0)); 1465Assert.Equal(color3, ((Bitmap)collection[1]).GetPixel(0, 0)); 1472Assert.Equal(color1, ((Bitmap)collection[0]).GetPixel(0, 0)); 1473Assert.Equal(color3, ((Bitmap)collection[1]).GetPixel(0, 0)); 1480Assert.Equal(color3, ((Bitmap)collection[0]).GetPixel(0, 0)); 1496using Bitmap image1 = new(1, 2); 1498using Bitmap image2 = new(3, 4); 1500using Bitmap image3 = new(3, 4); 1506Color color1 = ((Bitmap)collection[0]).GetPixel(0, 0); 1507Color color2 = ((Bitmap)collection[1]).GetPixel(0, 0); 1508Color color3 = ((Bitmap)collection[2]).GetPixel(0, 0); 1515Assert.Equal(color1, ((Bitmap)collection[0]).GetPixel(0, 0)); 1516Assert.Equal(color2, ((Bitmap)collection[1]).GetPixel(0, 0)); 1517Assert.Equal(color3, ((Bitmap)collection[2]).GetPixel(0, 0)); 1524Assert.Equal(color1, ((Bitmap)collection[0]).GetPixel(0, 0)); 1525Assert.Equal(color2, ((Bitmap)collection[1]).GetPixel(0, 0)); 1526Assert.Equal(color3, ((Bitmap)collection[2]).GetPixel(0, 0)); 1545using Bitmap image1 = new(1, 2); 1546using Bitmap image2 = new(3, 4); 1566using Bitmap image1 = new(1, 2); 1567using Bitmap image2 = new(3, 4); 1599using Bitmap image = new(10, 10); 1634using Bitmap image = new(10, 10); 1645Bitmap bitmap = Assert.IsType<Bitmap>(collection[0]); 1655using Bitmap image = new(10, 10); 1667Bitmap bitmap = Assert.IsType<Bitmap>(collection[0]); 1681using Bitmap value = new(1, 2); 1690using Bitmap image = new(10, 10); 1695using Bitmap value = new(1, 2); 1709using Bitmap image = new(10, 10); 1720using Bitmap image = new(10, 10);
System\Windows\Forms\ImageListTests.cs (26)
463using Bitmap image = new(10, 10); 500Bitmap image = new(10, 10); 527Bitmap image = new(10, 10); 552Bitmap image = new(10, 10); 577Bitmap image = new(10, 10); 601Bitmap image = new(10, 10); 833using Bitmap bitmap = new(10, 10); 854using Bitmap bitmap1 = new(10, 10); 855using Bitmap bitmap2 = new(10, 10); 889using Bitmap bitmap = new(10, 10); 929using Bitmap image = new(10, 10); 932using Bitmap sourceImage = new(10, 10); 943using Bitmap image = new(10, 10); 947using Bitmap sourceImage = new(10, 10); 958using Bitmap image = new(10, 10); 961using Bitmap sourceImage = new(10, 10); 972using Bitmap image = new(10, 10); 976using Bitmap sourceImage = new(10, 10); 996using Bitmap image = new(10, 10); 999using Bitmap sourceImage = new(10, 10); 1010using Bitmap image = new(10, 10); 1014using Bitmap sourceImage = new(10, 10); 1024using Bitmap image = new(10, 10); 1039using Bitmap sourceImage = new(10, 10); 1052using Bitmap image = new(10, 10); 1055using Bitmap sourceImage = new(10, 10);
System\Windows\Forms\LabelTests.cs (9)
506using Bitmap image1 = new(10, 10); 515using Bitmap image2 = new(50, 10); 544using Bitmap image = new(10, 10); 616using Bitmap bitmap1 = new(10, 10); 617using Bitmap bitmap2 = new(10, 10); 650using Bitmap bitmap1 = new(10, 10); 651using Bitmap bitmap2 = new(10, 10); 684using Bitmap image = new(10, 10); 710using Bitmap bitmap = new(10, 10);
System\Windows\Forms\ListBoxTests.cs (4)
505using Bitmap image1 = new(10, 10); 516using Bitmap image2 = new(10, 10); 5520Bitmap bitmap = new(10, 10); 5641using Bitmap bitmap = new(10, 10);
System\Windows\Forms\MdiClientTests.cs (4)
180using Bitmap image = new(10, 10); 227using Bitmap image1 = new(10, 10); 238using Bitmap image2 = new(10, 10); 259using Bitmap image = new(10, 10);
System\Windows\Forms\MeasureItemEventArgsTests.cs (4)
15Bitmap image = new(10, 10); 36Bitmap image = new(10, 10); 61using Bitmap image = new(10, 10); 76using Bitmap image = new(10, 10);
System\Windows\Forms\MonthCalendarTests.cs (2)
405using Bitmap image1 = new(10, 10); 416using Bitmap image2 = new(10, 10);
System\Windows\Forms\Ole\BinaryFormatUtilitiesTests.cs (4)
35using Bitmap image = new(10, 10); 56using Bitmap value = new(10, 10); 65BinaryFormatUtilities.TryReadObjectFromStream(stream, in request, out Bitmap? result).Should().BeTrue(); 66result.Should().BeOfType<Bitmap>().Which.Size.Should().Be(value.Size);
System\Windows\Forms\PaintEventArgsTests.cs (3)
24using Bitmap image = new(10, 10); 41using Bitmap image = new(10, 10); 53using Bitmap image = new(10, 10);
System\Windows\Forms\PictureBoxTests.cs (9)
388using Bitmap image = new(10, 10); 405using Bitmap image = new(10, 10); 598using Bitmap image = new(10, 10); 615using Bitmap image = new(10, 10); 652using Bitmap image = new(10, 10); 1085using Bitmap image = new(10, 10); 1102using Bitmap image = new(10, 10); 1928using Bitmap image = new(10, 10); 2498using Bitmap image = new(10, 10);
System\Windows\Forms\ProgressBarRendererTest.cs (2)
68using Bitmap bitmap1 = new(100, 100); 69using Bitmap bitmap2 = new(100, 100);
System\Windows\Forms\ProgressBarTests.cs (2)
249Bitmap image1 = new(10, 10); 260Bitmap image2 = new(10, 10);
System\Windows\Forms\PropertyGrid.PropertyTabCollectionTests.cs (2)
67private Bitmap _bitmap; 75public override Bitmap Bitmap
System\Windows\Forms\PropertyGridTests.cs (3)
442using Bitmap image1 = new(10, 10); 453using Bitmap image2 = new(10, 10); 2380public override Bitmap Bitmap => new(10, 10);
System\Windows\Forms\RichTextBoxTests.ClipboardTests.cs (1)
23using Bitmap bitmap = new(100, 100);
System\Windows\Forms\RichTextBoxTests.cs (3)
770using Bitmap image1 = new(10, 10); 781using Bitmap image2 = new(10, 10); 10663using Bitmap bitmap1 = new(10, 10);
System\Windows\Forms\ScrollableControlTests.cs (4)
1532using Bitmap image = new(10, 10); 1679using Bitmap image = new(10, 10); 1731using Bitmap image = new(10, 10); 1819using Bitmap image = new(10, 10);
System\Windows\Forms\ScrollBarTests.cs (2)
277using Bitmap image1 = new(10, 10); 288using Bitmap image2 = new(10, 10);
System\Windows\Forms\SplitterTests.cs (2)
231using Bitmap image1 = new(10, 10); 242using Bitmap image2 = new(10, 10);
System\Windows\Forms\StatusStripTests.cs (1)
1212using Bitmap image = new(10, 10);
System\Windows\Forms\TabControlTests.cs (6)
649using Bitmap image1 = new(10, 10); 660using Bitmap image2 = new(10, 10); 1267using Bitmap image1 = new(10, 10); 1268using Bitmap image2 = new(10, 10); 1269using Bitmap image3 = new(10, 10); 4222Bitmap bitmap = new(10, 10);
System\Windows\Forms\TableLayoutCellPaintEventArgsTests.cs (1)
25using Bitmap image = new(10, 10);
System\Windows\Forms\TableLayoutPanelTests.cs (3)
1210Bitmap image = new(10, 10); 1431using Bitmap image = new(10, 10); 1471using Bitmap image = new(10, 10);
System\Windows\Forms\TabPageTests.cs (4)
3978using Bitmap image = new(10, 10); 4048using Bitmap image = new(10, 10); 4104using Bitmap image = new(10, 10); 4187using Bitmap image = new(10, 10);
System\Windows\Forms\TextRendererTests.cs (16)
37using Bitmap image = new(10, 10); 71using Bitmap image = new(10, 10); 108using Bitmap image = new(10, 10); 149using Bitmap image = new(10, 10); 181using Bitmap image = new(10, 10); 217using Bitmap image = new(10, 10); 257using Bitmap image = new(10, 10); 301using Bitmap image = new(10, 10); 313using Bitmap image = new(10, 10); 474using Bitmap image = new(10, 10); 489using Bitmap image = new(10, 10); 504using Bitmap image = new(10, 10); 519using Bitmap image = new(10, 10); 538using Bitmap image = new(10, 10); 727using Bitmap image = new(200, 50); 804using Bitmap image = new(200, 50);
System\Windows\Forms\ToolStripArrowRenderEventArgsTests.cs (4)
21Bitmap image = new(10, 10); 51using Bitmap image = new(10, 10); 71using Bitmap image = new(10, 10); 86using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripButtonTests.cs (3)
1266using Bitmap image = new(10, 10); 1357using Bitmap image = new(10, 10); 1450Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripComboBox.ToolStripComboBoxControl.ToolStripComboBoxFlatComboAdapterTests.cs (1)
75using Bitmap bitmap = new(100, 100);
System\Windows\Forms\ToolStripComboBoxTests.cs (1)
142using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripContentPanelRenderEventArgsTests.cs (3)
14Bitmap image = new(10, 10); 32using Bitmap image = new(10, 10); 46using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripContentPanelTests.cs (1)
1855using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripControlHostTests.cs (3)
433using Bitmap value = new(10, 10); 560using Bitmap backgroundImage = new(10, 10); 4110using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripDropDownTests.cs (2)
825using Bitmap image1 = new(10, 10); 836using Bitmap image2 = new(10, 10);
System\Windows\Forms\ToolStripGripRenderEventArgsTests.cs (2)
14Bitmap image = new(10, 10); 31Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripItemCollectionTests.cs (2)
362using Bitmap image = new(10, 10); 376using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripItemImageRenderEventArgsTests.cs (3)
14Bitmap image = new(10, 10); 31Bitmap image = new(10, 10); 76using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripItemRenderEventArgsTests.cs (2)
14Bitmap image = new(10, 10); 31Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripItemTests.cs (31)
3695using Bitmap image = new(10, 10); 3716using Bitmap image = new(10, 10); 3763using Bitmap image = new(10, 10); 3846using Bitmap oldValue = new(10, 10); 3867using Bitmap oldValue = new(10, 10); 4089using Bitmap image = new(10, 10); 4103using Bitmap image = new(10, 10); 4117using Bitmap otherImage = new(10, 10); 4134using Bitmap image = new(10, 10); 4148using Bitmap image = new(10, 10); 4162using Bitmap otherImage = new(10, 10); 4408using Bitmap image = new(10, 10); 4500using Bitmap image = new(10, 10); 4643using Bitmap image = new(10, 10); 4760using Bitmap image = new(10, 10); 4785using Bitmap image = new(10, 10); 4839using Bitmap image = new(10, 10); 4863using Bitmap image = new(10, 10); 4916using Bitmap image = new(10, 10); 5002using Bitmap image = new(10, 10); 5139using Bitmap image = new(10, 10); 5253using Bitmap image = new(10, 10); 5284using Bitmap image = new(10, 10); 5345using Bitmap image = new(10, 10); 5376using Bitmap image = new(10, 10); 9876using Bitmap image = new(10, 10); 9912using Bitmap image = new(10, 10); 9954using Bitmap image = new(10, 10); 10027using Bitmap image = new(10, 10); 10065using Bitmap image = new(10, 10); 10109using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripItemTextRenderEventArgsTests.cs (4)
23using Bitmap image = new(10, 10); 49using Bitmap image = new(10, 10); 66using Bitmap image = new(10, 10); 82using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripLabelTests.cs (4)
38using Bitmap image = new(10, 10); 50using Bitmap image = new(10, 10); 63using Bitmap image = new(10, 10); 77using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripMenuItemTests.cs (5)
117using Bitmap bitmap = menuItem.TestAccessor().Dynamic.GetNativeMenuItemImage(); 190using Bitmap image = new(10, 10); 205using Bitmap image = new(10, 10); 223using Bitmap image = new(10, 10); 241using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripPanelRenderEventArgsTests.cs (3)
14Bitmap image = new(10, 10); 32using Bitmap image = new(10, 10); 46using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripRendererTests.cs (15)
16using Bitmap image = new(10, 11); 17Image result = Assert.IsType<Bitmap>(ToolStripRenderer.CreateDisabledImage(image)); 46using Bitmap image = new(10, 10); 81Bitmap image = new(10, 10); 138Bitmap image = new(10, 10); 193Bitmap image = new(10, 10); 314using Bitmap image = new(10, 10); 421Bitmap image = new(10, 10); 487using Bitmap image = new(10, 10); 522Bitmap image = new(10, 10); 604Bitmap image = new(10, 10); 661Bitmap image = new(10, 10); 726using Bitmap image = new(10, 10); 843using Bitmap image = new(10, 10); 920using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripRenderEventArgsTests.cs (4)
14Bitmap image = new(10, 10); 41using Bitmap image = new(10, 10); 65using Bitmap image = new(10, 10); 94using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripSeparatorRenderEventArgsTests.cs (2)
14Bitmap image = new(10, 10); 31Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripSeparatorTests.cs (3)
1119Bitmap image = new(10, 10); 1213using Bitmap image = new(10, 10); 1284using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripSplitButtonTests.cs (5)
97using Bitmap image = new(10, 10); 108using Bitmap image = new(10, 10); 122using Bitmap image = new(10, 10); 139using Bitmap image = new(10, 10); 154using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripStatusLabelTests.cs (4)
34using Bitmap sampleImage = new(10, 10); 44using Bitmap sampleImage = new(10, 10); 54using Bitmap sampleImage = new(10, 10); 72using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripTests.cs (7)
5873using Bitmap image = new(10, 10); 6020using Bitmap image = new(10, 10); 6071using Bitmap image = new(10, 10); 6158using Bitmap image = new(10, 10); 6233using Bitmap image = new(10, 10); 6262using Bitmap image = new(10, 10); 7267using Bitmap bitmap = ScaleHelper.GetIconResourceAsBestMatchBitmap(
System\Windows\Forms\TrackBarRendererTests.cs (1)
11private readonly Bitmap _bitmap;
System\Windows\Forms\TreeNodeTests.cs (51)
1002using Bitmap image = new(10, 10); 1041using Bitmap image = new(10, 10); 1075using Bitmap image = new(10, 10); 1106using Bitmap image = new(10, 10); 1121using Bitmap image1 = new(10, 10); 1122using Bitmap image2 = new(10, 10); 1188using Bitmap image = new(10, 10); 1255using Bitmap image1 = new(10, 10); 1256using Bitmap image2 = new(10, 10); 1412using Bitmap image1 = new(10, 10); 1413using Bitmap image2 = new(10, 10); 1502using Bitmap image1 = new(10, 10); 1503using Bitmap image2 = new(10, 10); 1532using Bitmap image1 = new(10, 10); 1533using Bitmap image2 = new(10, 10); 2984using Bitmap image = new(10, 10); 3023using Bitmap image = new(10, 10); 3057using Bitmap image = new(10, 10); 3088using Bitmap image = new(10, 10); 3103using Bitmap image1 = new(10, 10); 3104using Bitmap image2 = new(10, 10); 3170using Bitmap image = new(10, 10); 3210using Bitmap image1 = new(10, 10); 3211using Bitmap image2 = new(10, 10); 3239using Bitmap image1 = new(10, 10); 3240using Bitmap image2 = new(10, 10); 3396using Bitmap image1 = new(10, 10); 3397using Bitmap image2 = new(10, 10); 3486using Bitmap image1 = new(10, 10); 3487using Bitmap image2 = new(10, 10); 3516using Bitmap image1 = new(10, 10); 3517using Bitmap image2 = new(10, 10); 3607using Bitmap image = new(10, 10); 3650using Bitmap image = new(10, 10); 3699using Bitmap image = new(10, 10); 3731using Bitmap image = new(10, 10); 3754using Bitmap image1 = new(10, 10); 3755using Bitmap image2 = new(10, 10); 3875using Bitmap image1 = new(10, 10); 3876using Bitmap image2 = new(10, 10); 3905using Bitmap image1 = new(10, 10); 3906using Bitmap image2 = new(10, 10); 3968using Bitmap image = new(10, 10); 4144using Bitmap image1 = new(10, 10); 4145using Bitmap image2 = new(10, 10); 4245using Bitmap image1 = new(10, 10); 4246using Bitmap image2 = new(10, 10); 4283using Bitmap image1 = new(10, 10); 4284using Bitmap image2 = new(10, 10); 4443using Bitmap image1 = new(10, 10); 4444using Bitmap image2 = new(10, 10);
System\Windows\Forms\TreeViewImageIndexConverterTests.cs (2)
81using Bitmap image1 = new(10, 10); 82using Bitmap image2 = new(10, 10);
System\Windows\Forms\TreeViewTests.cs (3)
822using Bitmap image1 = new(10, 10); 833using Bitmap image2 = new(10, 10); 5668Bitmap image = new(10, 10);
System\Windows\Forms\UpDownBaseTests.cs (4)
634using Bitmap image1 = new(10, 10); 645using Bitmap image2 = new(10, 10); 2247using Bitmap image = new(10, 10); 2283using Bitmap image = new(10, 10);
System\Windows\Forms\UserControlTests.cs (2)
1096using Bitmap backgroundImage = new(10, 10); 1194using Bitmap backgroundImage = new(10, 10);
System\Windows\Forms\VisualStyles\VisualStyleRendererTests.cs (25)
138using Bitmap bitmap = new(10, 10); 172using Bitmap bitmap = new(10, 10); 207using Bitmap bitmap = new(10, 10); 225using Bitmap bitmap = new(10, 10); 235using Bitmap bitmap = new(10, 10); 245using Bitmap bitmap = new(10, 10); 269using Bitmap bitmap = new(10, 10); 271using Bitmap image = new(10, 10); 282using Bitmap bitmap = new(10, 10); 284using Bitmap image = new(10, 10); 295using Bitmap image = new(10, 10); 305using Bitmap image = new(10, 10); 306using Bitmap bitmap = new(10, 10); 315using Bitmap image = new(10, 10); 316using Bitmap bitmap = new(10, 10); 327using Bitmap bitmap = new(10, 10); 329using Bitmap image = new(10, 10); 354using Bitmap bitmap = new(10, 10); 381using Bitmap bitmap = new(10, 10); 420using Bitmap bitmap = new(10, 10); 451using Bitmap bitmap = new(10, 10); 482using Bitmap bitmap = new(10, 10); 492using Bitmap image = new(10, 10); 573using Bitmap image = new(10, 10); 585using Bitmap image = new(10, 10);
TextBoxBaseTests.cs (2)
472using Bitmap image1 = new(10, 10); 483using Bitmap image2 = new(10, 10);
TrackBarTests.cs (3)
467using Bitmap image1 = new(10, 10); 478using Bitmap image2 = new(10, 10); 3245using Bitmap bitmap = new(bitmapWidth, bitmapHeight);
WebBrowserBaseTests.cs (5)
674using Bitmap bitmap = new(20, 20); 696using Bitmap bitmap = new(20, 20); 725using Bitmap bitmap = new(10, 10); 739using Bitmap bitmap = new(10, 10); 753using Bitmap bitmap = new(10, 10);
System.Windows.Forms.TestUtilities (1)
CommonTestHelperEx.cs (1)
111Bitmap image = new(10, 10);
System.Windows.Forms.UI.IntegrationTests (20)
DragDropTests.cs (3)
23private readonly Bitmap _dragImage = new("./Resources/move.bmp"); 949private readonly Bitmap _dragImage = new("./Resources/image.png"); 950private readonly Bitmap _dragAcceptBmp = new("./Resources/DragAccept.bmp");
Infra\ScreenRecordService.cs (12)
25private static readonly List<(TimeSpan elapsed, Bitmap image)> s_frames = []; 135(TimeSpan elapsed, Bitmap image)[] frames; 149(TimeSpan elapsed, Bitmap image, Size offset)[] croppedFrames = DetectChangedRegions(frames); 159(TimeSpan elapsed, Bitmap image, Size offset) firstFrame = croppedFrames[0]; 234private static (TimeSpan elapsed, Bitmap image, Size offset)[] DetectChangedRegions((TimeSpan elapsed, Bitmap image)[] frames) 242List<(TimeSpan elapsed, Bitmap image, Size offset)> resultFrames = new(frames.Length); 244var lockedBitmaps = new (Bitmap image, BitmapData data)[2]; 325Bitmap croppedSource = frames[i].image.Clone(cropArea, frames[i].image.PixelFormat); 332foreach ((Bitmap image, BitmapData data) in lockedBitmaps) 367private static void WriteFrame(Stream stream, byte[] buffer, Crc32 crc, ref int sequenceNumber, Bitmap frame, Size offset, TimeSpan delay) 407private static (ReadOnlyMemory<byte> signature, ReadOnlyMemory<byte> ihdr, ImmutableArray<ReadOnlyMemory<byte>> idat, ReadOnlyMemory<byte> iend) EncodeFrame(Bitmap frame)
Infra\ScreenshotService.cs (5)
27using var bitmap = TryCaptureFullScreen(); 41/// Captures the full screen to a <see cref="Bitmap"/>. 44/// A <see cref="Bitmap"/> containing the screen capture of the desktop, or <see langword="null"/> if a screen 47internal static Bitmap? TryCaptureFullScreen() 62Bitmap bitmap = new(width, height, PixelFormat.Format32bppArgb);
TestPassApp (2)
Properties\Resources.Designer.cs (2)
66internal static System.Drawing.Bitmap TestResult { 69return ((System.Drawing.Bitmap)(obj));
WindowsFormsIntegration (15)
System\Windows\Integration\ElementHost.cs (1)
415using (SD.Bitmap bitmap = HostUtils.GetBitmapFromRenderTargetBitmap(this, renderBitmap, new Point(0, 0)))
System\Windows\Integration\ElementHostPropertyMap.cs (2)
70using (SD.Bitmap parentBitmap = HostUtils.GetCoveredPortionOfBitmap(parent, host)) 78using (SD.Bitmap elementHostBitmap = HostUtils.GetBitmapOfControl(host, host))
System\Windows\Integration\HostUtils.cs (11)
144internal static void SetBackgroundImage(WinFormsAdapter adapter, Control child, SD.Bitmap image) 157internal static SD.Bitmap GetBitmapForWindowsFormsHost(WindowsFormsHost host, Brush brush) 172internal static SD.Bitmap GetBitmapOfControl(Control control, ElementHost host) 179SD.Bitmap bitmap = new SD.Bitmap(control.ClientRectangle.Width, control.ClientRectangle.Height); 193internal static SD.Bitmap GetCoveredPortionOfBitmap(Control parentControl, ElementHost childElementHost) 195using (SD.Bitmap parentBitmap = GetBitmapOfControl(parentControl, childElementHost)) 197SD.Bitmap returnBitmap = new SD.Bitmap(childElementHost.ClientRectangle.Width, childElementHost.ClientRectangle.Height); 223internal static SD.Bitmap GetBitmapForTransparentWindowsFormsHost(WindowsFormsHost host) 277internal static SD.Bitmap GetBitmapFromRenderTargetBitmap(Control control, RenderTargetBitmap bmp, Point offset) 298SD.Bitmap chunk = new System.Drawing.Bitmap(width, height, graphicsTemplate); 326internal static SD.Bitmap GetBitmapForOpaqueWindowsFormsHost(WindowsFormsHost host, Brush brush)
System\Windows\Integration\WindowsFormsHostPropertyMap.cs (1)
89SD.Bitmap backgroundImage = HostUtils.GetBitmapForWindowsFormsHost(windowsFormsHost, brush);
WinFormsControlsTest (14)
Dialogs.cs (1)
29Image = (Bitmap?)resources.GetObject("OpenDialog"),
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"); 167&& e.Data.GetData(nameof(_nyanCatBmp)) is Bitmap nyanCatBmp) 357private void LoadCat(PictureBox pictureBox, Bitmap image)
ListViewTest.cs (4)
249Bitmap bitmap = (Bitmap)Image.FromFile(file); 280Bitmap bitmap = (Bitmap)Image.FromFile(file);
MessageBoxes.cs (1)
20Image = (System.Drawing.Bitmap?)(resources.GetObject("OpenDialog")),