2132 instantiations of Bitmap
Microsoft.VisualBasic.Tests (1)
Microsoft\VisualBasic\MyServices\ClipboardProxyTests.cs (1)
69using 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)
107Bitmap bmp = new Bitmap(bitmapwidth, bitmapheight); 119Bitmap img = new Bitmap(stream); 149return new Bitmap(bitmapStream); 166Bitmap bitmapFinal = new Bitmap(
System.Drawing.Common.Tests (887)
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 (192)
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); 2825using Bitmap bitmap = new(10, 10); 2834using Bitmap bitmap = new(10, 10); 2845using Bitmap bitmap = new(10, 10); 2855using Bitmap bitmap = new(10, 10); 2866using Bitmap bitmap = new(10, 10); 2883using Bitmap bitmap = new(10, 10, sourceFormat); 2887using Bitmap bitmap2 = new(10, 10, destinationFormat); 2933using Bitmap bitmap = new(10, 10); 2942using Bitmap bitmap = new(10, 10); 2951using Bitmap bitmap = new(10, 10); 2960using 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)
23using Bitmap bitmap = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 31using Bitmap bitmap = new(1, 1); 39using Bitmap bitmap = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 81using Bitmap bitmap = new(Helpers.GetTestBitmapPath("almogaver1bit.bmp")); 89using Bitmap bitmap = new(1, 1); 97using Bitmap bitmap = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 111using Bitmap bitmap = new(1, 1); 121using Bitmap bitmap = new(Helpers.GetTestBitmapPath("almogaver1bit.bmp")); 128using Bitmap source = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 132using Bitmap bitmap = new(1, 1); 156using Bitmap bitmap = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 179using Bitmap bitmap = new(1, 1); 189using Bitmap bitmap = new(Helpers.GetTestBitmapPath("almogaver1bit.bmp")); 199using Bitmap source = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 203using Bitmap bitmap = new(1, 1); 217using Bitmap bitmap = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 227using Bitmap source = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 228using Bitmap bitmap = new(1, 1); 286using Bitmap bitmap = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 428using Bitmap source = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 429using Bitmap bitmap = new(Helpers.GetTestBitmapPath("almogaver1bit.bmp")); 651using Bitmap bitmap = new(1, 1); 662using 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)
122using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 141using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 168using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 184using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 204using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 214using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 225using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 234using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 244using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 254using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 265using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 301using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 319using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 337using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 353using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 370using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 397using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 408using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 421using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 433using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 446using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 462using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 478using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 495using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 513using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 530using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 546using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 562using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 579using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 597using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 635using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 657using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 675using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 692using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 708using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 724using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 735using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 746using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 758using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 771using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 797using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 812using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 824using 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)
4878using 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)
1350Bitmap 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)
698using 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)
2654using 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)
878using Bitmap textBmp = new(textSize.Width, textSize.Height, PixelFormat.Format32bppPArgb); 1036Bitmap disabledBitmap = new(size.Width, size.Height);
System\Windows\Forms\Nrbf\WinFormsSerializationRecordExtensions.cs (1)
52bitmap = new Bitmap(new MemoryStream(data.GetArray()));
System\Windows\Forms\Rendering\ControlPaint.cs (8)
1370Bitmap bitmap = new(rectangle.Width, rectangle.Height); 1441using Bitmap bitmap = new(width, height); 1537using Bitmap bitmap = new(width, height); 1636using Bitmap bitmap = new(image.Width, image.Height); 2096using Bitmap bitmap = new(patternSize, patternSize); 2147using Bitmap b = new(2, 2); 2226using Bitmap bitmap = new(patternSize, patternSize); 2431Bitmap result = new(bitmap.Width, bitmap.Height, bitmap.PixelFormat);
System.Windows.Forms.Design (13)
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)
602itemBitmap = 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"); 1907Bitmap 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.Tests (32)
System\ComponentModel\Design\ByteViewerTests.cs (4)
425using Bitmap image = new(10, 10); 466using Bitmap image = new(10, 10); 511using Bitmap image = new(10, 10); 541using Bitmap image = new(10, 10);
System\Drawing\Design\BitmapEditorTests.cs (1)
74using Bitmap image = new(10, 10);
System\Drawing\Design\FontNameEditorTests.cs (1)
84using (Bitmap bitmap = new(1, 1))
System\Drawing\Design\ImageEditorTests.cs (4)
130using Bitmap image = new(10, 10); 160using Bitmap image = new(10, 10); 161using Bitmap otherImage = new(3, 2); 185using Bitmap image = new(10, 10);
System\Drawing\Design\MetafileEditorTests.cs (1)
57using Bitmap image = new(10, 10);
System\Drawing\Design\ToolboxItemTests.cs (9)
101yield return new object[] { new Bitmap(10, 10) }; 1337using Bitmap bitmap = new(10, 10); 1338using Bitmap originalBitmap = new(10, 10); 1383using Bitmap bitmap = new(10, 10); 1384using Bitmap originalBitmap = new(10, 10); 1412using Bitmap bitmap = new(10, 10); 1413using Bitmap originalBitmap = new(10, 10); 1537Bitmap bitmap = new(10, 10); 1541Bitmap originalBitmap = new(10, 10);
System\Resources\Tools\StronglyTypedResourceBuilderTests.cs (1)
324using Bitmap bitmap = new(10, 10);
System\Windows\Forms\Design\DataSourceDescriptorCollectionTests.cs (1)
109public override Bitmap Image => new(1, 1);
System\Windows\Forms\Design\DataSourceGroupCollectionTests.cs (1)
104public override Bitmap Image => new(1, 1);
System\Windows\Forms\Design\EmbeddedResourceTests.cs (1)
106using Bitmap bitmap = new(stream);
System\Windows\Forms\Design\ImageIndexEditorTests.cs (1)
35using Bitmap bitmap = new(10, 10);
System\Windows\Forms\Design\ImageListDesignerOriginalImageCollectionTests.cs (1)
16private readonly Image _image = new Bitmap(10, 10);
System\Windows\Forms\Design\ImageListImageEditorTests.cs (1)
18using Bitmap image = new(10, 10);
System\Windows\Forms\Design\ImageListImageTests.cs (5)
15using Bitmap bitmap = new(10, 10); 25using Bitmap bitmap = new(10, 10); 36using Bitmap bitmap = new(10, 10); 49using Bitmap bitmap = new(10, 10); 61using 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)
83using Bitmap bitmap = new(100, 200);
Interop\Oleaut32\ITypeInfoTests.cs (16)
17using Bitmap image = new(16, 32); 31using Bitmap image = new(16, 32); 45using Bitmap image = new(16, 32); 61using Bitmap image = new(16, 32); 81using Bitmap image = new(16, 32); 101using Bitmap image = new(16, 32); 135using Bitmap image = new(16, 32); 159using Bitmap image = new(16, 32); 173using Bitmap image = new(16, 32); 187using Bitmap image = new(16, 32); 209using Bitmap image = new(16, 32); 226using Bitmap image = new(16, 32); 240using Bitmap image = new(16, 32); 279using Bitmap image = new(16, 32); 292using Bitmap image = new(16, 32); 321using 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 (1125)
CheckedListBoxTests.cs (6)
419using Bitmap image = new(10, 10); 441using Bitmap image = new(10, 10); 462using Bitmap image = new(10, 10); 473using Bitmap image = new(10, 10); 486using Bitmap image = new(10, 10); 813using Bitmap image = new(10, 10);
SerializableTypesTests.cs (1)
81imageList.Images.Add(new Bitmap(16, 16));
System\Drawing\Design\PaintValueEventArgsTests.cs (1)
22using Bitmap image = new(10, 10);
System\Drawing\Design\PropertyValueUIItemTests.cs (4)
13yield return new object[] { new Bitmap(10, 10), (PropertyValueUIItemInvokeHandler)Dummy_PropertyValueUIItemInvokeHandler, null }; 14yield return new object[] { new Bitmap(10, 10), (PropertyValueUIItemInvokeHandler)Dummy_PropertyValueUIItemInvokeHandler, string.Empty }; 15yield return new object[] { new Bitmap(10, 10), (PropertyValueUIItemInvokeHandler)Dummy_PropertyValueUIItemInvokeHandler, "tooltip" }; 37using Bitmap uiItemImage = new(10, 10);
System\Drawing\Design\UITypeEditorTests.cs (4)
100Bitmap bitmap = new(10, 10); 110using Bitmap image = new(10, 10); 118Bitmap bitmap = new(10, 10); 132using (Bitmap image = new(10, 10))
System\Resources\ResxDataNodeTests.cs (2)
29using Bitmap bitmap = new(10, 10); 43using Bitmap bitmap = new(10, 10);
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemDetailsAccessibleObjectTests.cs (1)
188using Image image = new Bitmap(1, 1);
System\Windows\Forms\AccessibleObjects\ToolStripDropDownButton.ToolStripDropDownButtonAccessibleObjectTests.cs (1)
101using Bitmap image = new(10, 10);
System\Windows\Forms\AxHostTests.cs (2)
1607Bitmap original = new(10, 11); 1667Bitmap original = new(10, 11);
System\Windows\Forms\BinaryFormat\WinFormsBinaryFormattedObjectTests.cs (5)
22using Bitmap bitmap = new(10, 10); 38using Bitmap bitmap = new(10, 10); 53using Bitmap bitmap = new(10, 10); 74using Bitmap image = new(10, 10); 97using Bitmap image = new(10, 10);
System\Windows\Forms\BinaryFormatUtilitiesTests.cs (4)
248using Bitmap image = new(10, 10); 263using Bitmap image = new(10, 10); 277using Bitmap value = new(10, 10); 284using Bitmap value = new(10, 10);
System\Windows\Forms\ButtonBaseTests.cs (30)
815foreach (Image image in new Image[] { null, new Bitmap(10, 10) }) 889foreach (Image image in new Image[] { null, new Bitmap(10, 10) }) 1385yield return new object[] { autoSize, enabled, visible, new Bitmap(10, 10) }; 1432using Bitmap value = new(10, 10); 1456using Bitmap value = new(10, 10); 1482using Bitmap value = new(10, 10); 1537yield return new object[] { true, enabled, visible, new Bitmap(10, 10), 1 }; 1539yield return new object[] { false, enabled, visible, new Bitmap(10, 10), 0 }; 1601yield return new object[] { autoSize, enabled, visible, new Bitmap(10, 10), 2 }; 1704yield return new object[] { true, enabled, visible, new Bitmap(10, 10), 1, 2 }; 1706yield return new object[] { false, enabled, visible, new Bitmap(10, 10), 0, 2 }; 1780using Bitmap image = new(10, 10); 1799using Bitmap image = new(10, 10); 1827using Bitmap image = new(10, 10); 2077using Bitmap image = new(10, 10); 2151using Bitmap image1 = new(10, 10); 2152using Bitmap image2 = new(10, 10); 2236using Bitmap image = new(10, 10); 2302using Bitmap image1 = new(10, 10); 2303using Bitmap image2 = new(10, 10); 2385using Bitmap image = new(10, 10); 2798foreach (Image image in new Image[] { null, new Bitmap(10, 10) }) 4342foreach (Image image in new Image[] { null, new Bitmap(10, 10) }) 4416foreach (Image image in new Image[] { null, new Bitmap(10, 10) }) 5103foreach (Image image in new Image[] { null, new Bitmap(10, 10) }) 5194foreach (Image image in new Image[] { null, new Bitmap(10, 10) }) 6932foreach (Image image in new Image[] { null, new Bitmap(10, 10) }) 7023foreach (Image image in new Image[] { null, new Bitmap(10, 10) }) 7362foreach (Image image in new Image[] { null, new Bitmap(10, 10) }) 7453foreach (Image image in new Image[] { null, new Bitmap(10, 10) })
System\Windows\Forms\ButtonTests.cs (2)
3423using Bitmap image = new(10, 10); 3496using Bitmap image = new(10, 10);
System\Windows\Forms\ClipboardTests.cs (2)
378using Bitmap bitmap = new(10, 10); 433using Bitmap bitmap = new(10, 10);
System\Windows\Forms\ColumnHeaderTests.cs (8)
372using Bitmap image1 = new(10, 10); 373using Bitmap image2 = new(10, 10); 458using Bitmap image1 = new(10, 10); 459using Bitmap image2 = new(10, 10); 591using Bitmap image1 = new(10, 10); 592using Bitmap image2 = new(10, 10); 680using Bitmap image1 = new(10, 10); 681using Bitmap image2 = new(10, 10);
System\Windows\Forms\ComboBoxTests.cs (10)
385using Bitmap bitmap = new(100, 100); 528using Bitmap image1 = new(10, 10); 539using Bitmap image2 = new(10, 10); 723using Bitmap bitmap = new(1, 1); 746using Bitmap bitmap = new(1, 1); 766using Bitmap bitmap = new(1, 1); 1967using Bitmap image = new(10, 10); 2004using Bitmap image = new(10, 10); 2064using Bitmap image = new(10, 10); 2108using Bitmap image = new(10, 10);
System\Windows\Forms\ComponentModel\Com2Interop\COM2PictureConverterTests.cs (1)
159using Bitmap bitmap = new(42, 70);
System\Windows\Forms\ComponentModel\Com2Interop\ComNativeDescriptorTests.cs (3)
22using Bitmap bitmap = new(10, 20); 32using Bitmap bitmap = new(10, 20); 81using Bitmap bitmap = new(10, 20);
System\Windows\Forms\ControlPaintTests.cs (115)
13yield return new object[] { new Bitmap(10, 10, PixelFormat.Format1bppIndexed), Color.Empty }; 14yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppRgb), Color.Empty }; 15yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppArgb), Color.Empty }; 16yield return new object[] { new Bitmap(10, 10, PixelFormat.Format1bppIndexed), Color.Red }; 17yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppRgb), Color.Red }; 18yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppArgb), Color.Red }; 19yield return new object[] { new Bitmap(10, 10, PixelFormat.Format1bppIndexed), Color.Transparent }; 20yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppRgb), Color.Transparent }; 21yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppArgb), Color.Transparent }; 22yield return new object[] { new Bitmap(11, 11, PixelFormat.Format1bppIndexed), Color.Red }; 23yield return new object[] { new Bitmap(11, 11, PixelFormat.Format32bppRgb), Color.Red }; 24yield return new object[] { new Bitmap(11, 11, PixelFormat.Format32bppArgb), Color.Red }; 25yield return new object[] { new Bitmap(16, 24, PixelFormat.Format1bppIndexed), Color.Red }; 26yield return new object[] { new Bitmap(16, 24, PixelFormat.Format32bppRgb), Color.Red }; 27yield return new object[] { new Bitmap(16, 24, PixelFormat.Format32bppArgb), Color.Red }; 54using Bitmap bitmap = new(3, 1); 89yield return new object[] { new Bitmap(10, 10, PixelFormat.Format1bppIndexed), monochromeMask }; 90yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppRgb), monochromeMask }; 91yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppArgb), monochromeMask }; 92yield return new object[] { new Bitmap(16, 24, PixelFormat.Format1bppIndexed), monochromeMask }; 93yield return new object[] { new Bitmap(16, 24, PixelFormat.Format32bppRgb), monochromeMask }; 94yield return new object[] { new Bitmap(16, 24, PixelFormat.Format32bppArgb), monochromeMask }; 95yield return new object[] { new Bitmap(11, 11, PixelFormat.Format1bppIndexed), monochromeMask }; 96yield return new object[] { new Bitmap(11, 11, PixelFormat.Format32bppRgb), monochromeMask }; 97yield return new object[] { new Bitmap(11, 11, PixelFormat.Format32bppArgb), monochromeMask }; 125using Bitmap mask = new(3, 1); 132using Bitmap bitmap = new(3, 1); 165using Bitmap bitmap = new(3, 1); 198yield return new object[] { new Bitmap(10, 10, PixelFormat.Format1bppIndexed) }; 199yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppRgb) }; 200yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppArgb) }; 201yield return new object[] { new Bitmap(16, 24, PixelFormat.Format1bppIndexed) }; 202yield return new object[] { new Bitmap(16, 24, PixelFormat.Format32bppRgb) }; 203yield return new object[] { new Bitmap(16, 24, PixelFormat.Format32bppArgb) }; 204yield return new object[] { new Bitmap(11, 11, PixelFormat.Format1bppIndexed) }; 205yield return new object[] { new Bitmap(11, 11, PixelFormat.Format32bppRgb) }; 206yield return new object[] { new Bitmap(11, 11, PixelFormat.Format32bppArgb) }; 233using Bitmap bitmap = new(3, 1); 274using Bitmap bitmap = new(1, 1); 561using Bitmap image = new(10, 10); 574using Bitmap image = new(10, 10); 620using Bitmap image = new(10, 10); 662using Bitmap image = new(10, 10); 700using Bitmap image = new(10, 10); 725using Bitmap image = new(10, 10); 753using Bitmap image = new(10, 10); 765using Bitmap image = new(10, 10); 777using Bitmap image = new(10, 10); 789using Bitmap image = new(10, 10); 825using Bitmap image = new(10, 10); 837using Bitmap image = new(10, 10); 863using Bitmap image = new(10, 10); 874using Bitmap image = new(10, 10); 885using Bitmap image = new(10, 10); 909using Bitmap image = new(10, 10); 921using Bitmap image = new(10, 10); 946using Bitmap image = new(10, 10); 957using Bitmap image = new(10, 10); 968using Bitmap image = new(10, 10); 989using Bitmap image = new(10, 10); 1001using Bitmap image = new(10, 10); 1027using Bitmap image = new(10, 10); 1038using Bitmap image = new(10, 10); 1049using Bitmap image = new(10, 10); 1070using Bitmap image = new(10, 10); 1082using Bitmap image = new(10, 10); 1107using Bitmap image = new(10, 10); 1118using Bitmap image = new(10, 10); 1129using Bitmap image = new(10, 10); 1149using Bitmap image = new(10, 10); 1177using Bitmap image = new(10, 10); 1208using Bitmap image = new(10, 10); 1243using Bitmap image = new(10, 10); 1280using Bitmap image = new(10, 10); 1301using Bitmap image = new(10, 10); 1308yield return new object[] { new Bitmap(10, 10), -10, -20, Color.Red }; 1309yield return new object[] { new Bitmap(10, 10), 0, 0, Color.Red }; 1310yield return new object[] { new Bitmap(10, 10), 1, 2, Color.Red }; 1311yield return new object[] { new Bitmap(10, 10), 0, 0, Color.Black }; 1312yield return new object[] { new Bitmap(10, 10), 0, 0, Color.White }; 1313yield return new object[] { new Bitmap(10, 10), 0, 0, Color.Transparent }; 1314yield return new object[] { new Bitmap(10, 10), 0, 0, Color.Empty }; 1329using Bitmap sourceImage = new(10, 10); 1340using Bitmap image = new(10, 10); 1347using Bitmap image = new(10, 10); 1369using Bitmap image = new(10, 10); 1400using Bitmap image = new(10, 10); 1432using Bitmap image = new(10, 10); 1444using Bitmap image = new(10, 10); 1456using Bitmap image = new(10, 10); 1486using Bitmap image = new(10, 10); 1498using Bitmap image = new(10, 10); 1510using Bitmap image = new(10, 10); 1531using Bitmap image = new(10, 10); 1543using Bitmap image = new(10, 10); 1568using Bitmap image = new(10, 10); 1579using Bitmap image = new(10, 10); 1590using Bitmap image = new(10, 10); 1611using Bitmap image = new(10, 10); 1623using Bitmap image = new(10, 10); 1648using Bitmap image = new(10, 10); 1659using Bitmap image = new(10, 10); 1670using Bitmap image = new(10, 10); 1749using Bitmap image = new(10, 10); 1761using Bitmap image = new(10, 10); 1786using Bitmap image = new(10, 10); 1797using Bitmap image = new(10, 10); 1808using Bitmap image = new(10, 10); 1834using Bitmap image = new(10, 10); 1869using Bitmap image = new(10, 10); 1881using Bitmap image = new(10, 10); 1917using Bitmap image = new(10, 10); 1929using Bitmap image = new(10, 10); 1965using Bitmap image = new(10, 10); 1994using Bitmap image = new(10, 10);
System\Windows\Forms\ControlTests.Handlers.cs (53)
379BackgroundImage = new Bitmap(10, 10) 383BackgroundImage = new Bitmap(10, 10) 3836foreach (Image backgroundImage in new Image[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb), new Bitmap(10, 10, PixelFormat.Format32bppArgb) }) 3854using Bitmap image = new(10, 10); 3899foreach (Image backgroundImage in new Image[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb) }) 3912yield return new object[] { parent, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 3913yield return new object[] { parent, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 3914yield return new object[] { parent, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 1 }; 3915yield return new object[] { parent, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 1 }; 3916yield return new object[] { parent, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 3917yield return new object[] { parent, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 3919yield return new object[] { parent, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 3920yield return new object[] { parent, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 3921yield return new object[] { parent, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 2 }; 3922yield return new object[] { parent, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 2 }; 3923yield return new object[] { parent, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 3924yield return new object[] { parent, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 3943foreach (Image backgroundImage in new Image[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb) }) 3956yield return new object[] { parent, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 3957yield return new object[] { parent, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 3958yield return new object[] { parent, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 3959yield return new object[] { parent, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 3960yield return new object[] { parent, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, expected1 }; 3961yield return new object[] { parent, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, expected1 }; 3963yield return new object[] { parent, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected1 }; 3964yield return new object[] { parent, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected1 }; 3965yield return new object[] { parent, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected1 }; 3966yield return new object[] { parent, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected1 }; 3967yield return new object[] { parent, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected1 }; 3968yield return new object[] { parent, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected1 }; 3976using Bitmap image = new(10, 10); 4026using Bitmap image = new(10, 10); 4071foreach (Image backgroundImage in new Image[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb) }) 4084yield return new object[] { true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 4085yield return new object[] { true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 4086yield return new object[] { true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 1 }; 4087yield return new object[] { true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 1 }; 4088yield return new object[] { false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 4089yield return new object[] { false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 4091yield return new object[] { true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4092yield return new object[] { true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4093yield return new object[] { true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4094yield return new object[] { true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4095yield return new object[] { false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4096yield return new object[] { false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4103using Bitmap image = new(10, 10); 4277Bitmap image = new(10, 10); 4636using Bitmap image = new(10, 10); 4655using Bitmap image = new(10, 10); 4694using Bitmap image = new(10, 10); 4723using Bitmap image = new(10, 10); 4759using Bitmap image = new(10, 10);
System\Windows\Forms\ControlTests.Methods.cs (12)
1880using Bitmap bitmap = new(20, 20); 1902using Bitmap bitmap = new(20, 20); 1931using Bitmap bitmap = new(10, 10); 1945using Bitmap bitmap = new(10, 10); 1959using Bitmap bitmap = new(10, 10); 4295using Bitmap image = new(10, 10); 4304using Bitmap image = new(10, 10); 4351using Bitmap image = new(10, 10); 12893using Bitmap image = new(10, 10); 12988using Bitmap image = new(10, 10); 13235using Bitmap image = new(10, 10); 13352using Bitmap image = new(10, 10);
System\Windows\Forms\ControlTests.Properties.cs (22)
1652yield return new object[] { new Bitmap(10, 10), 1 }; 1711using Bitmap image1 = new(10, 10); 1712using Bitmap image2 = new(10, 10); 1751Bitmap image1 = new(10, 10); 1762Bitmap image2 = new(10, 10); 1793Bitmap value = new(10, 10); 1840Bitmap image1 = new(10, 10); 1859Bitmap image2 = new(10, 10); 1893using Bitmap childBackgroundImage1 = new(10, 10); 1894using Bitmap childBackgroundImage2 = new(10, 10); 1933Bitmap image1 = new(10, 10); 1952Bitmap image2 = new(10, 10); 2039yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, false }; 2040yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, false }; 2041yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Center, true }; 2042yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Stretch, true }; 2043yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Zoom, true }; 2045yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppRgb), ImageLayout.None, false }; 2046yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppRgb), ImageLayout.Tile, false }; 2047yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppRgb), ImageLayout.Center, false }; 2048yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppRgb), ImageLayout.Stretch, false }; 2049yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppRgb), ImageLayout.Zoom, false };
System\Windows\Forms\CursorTests.cs (6)
379using Bitmap image = new(10, 10); 389using Bitmap image = new(10, 10); 405using Bitmap image = new(10, 10); 416using Bitmap image = new(10, 10); 426using Bitmap image = new(10, 10); 442using Bitmap image = new(10, 10);
System\Windows\Forms\DataGridViewCellPaintingEventArgsTests.cs (16)
21using Bitmap image = new(10, 10); 44using Bitmap image = new(10, 10); 59using Bitmap image = new(10, 10); 69using Bitmap image = new(10, 10); 80using Bitmap image = new(10, 10); 91using Bitmap image = new(10, 10); 104using Bitmap image = new(10, 10); 117using Bitmap image = new(10, 10); 130using Bitmap image = new(10, 10); 141using Bitmap image = new(10, 10); 154using Bitmap image = new(10, 10); 167using Bitmap image = new(10, 10); 180using Bitmap image = new(10, 10); 191using Bitmap image = new(10, 10); 204using Bitmap image = new(10, 10); 217using Bitmap image = new(10, 10);
System\Windows\Forms\DataGridViewCellTests.cs (26)
3677using Bitmap image = new(10, 10); 3829using Bitmap image = new(10, 10); 5252using Bitmap image = new(10, 10); 5267using Bitmap image = new(10, 10); 5289using Bitmap image = new(10, 10); 5302using Bitmap image = new(10, 10); 5314using Bitmap image = new(10, 10); 5326using Bitmap image = new(10, 10); 5340using Bitmap image = new(10, 10); 5354using Bitmap image = new(10, 10); 5364using Bitmap image = new(10, 10); 5373using Bitmap image = new(10, 10); 5382using Bitmap image = new(10, 10); 5396using Bitmap image = new(10, 10); 5410using Bitmap image = new(10, 10); 5419using Bitmap image = new(10, 10); 5428using Bitmap image = new(10, 10); 5442using Bitmap image = new(10, 10); 5456using Bitmap image = new(10, 10); 5466using Bitmap image = new(10, 10); 5475using Bitmap image = new(10, 10); 6018using Bitmap image = new(10, 10); 6026using Bitmap image = new(10, 10); 6042using Bitmap image = new(10, 10); 6052using Bitmap image = new(10, 10); 6062using Bitmap image = new(10, 10);
System\Windows\Forms\DataGridViewHeaderCellTests.cs (1)
4621using Bitmap image = new(10, 10);
System\Windows\Forms\DataGridViewRowPostPaintEventArgsTests.cs (15)
21using Bitmap image = new(10, 10); 40using Bitmap image = new(10, 10); 55using Bitmap image = new(10, 10); 72using Bitmap image = new(10, 10); 85using Bitmap image = new(10, 10); 98using Bitmap image = new(10, 10); 109using Bitmap image = new(10, 10); 122using Bitmap image = new(10, 10); 133using Bitmap image = new(10, 10); 146using Bitmap image = new(10, 10); 157using Bitmap image = new(10, 10); 170using Bitmap image = new(10, 10); 181using Bitmap image = new(10, 10); 194using Bitmap image = new(10, 10); 207using Bitmap image = new(10, 10);
System\Windows\Forms\DataGridViewRowPrePaintEventArgsTests.cs (17)
12Bitmap image = new(10, 10); 41using Bitmap image = new(10, 10); 56using Bitmap image = new(10, 10); 73using Bitmap image = new(10, 10); 88using Bitmap image = new(10, 10); 102using Bitmap image = new(10, 10); 112using Bitmap image = new(10, 10); 125using Bitmap image = new(10, 10); 136using Bitmap image = new(10, 10); 149using Bitmap image = new(10, 10); 160using Bitmap image = new(10, 10); 173using Bitmap image = new(10, 10); 184using Bitmap image = new(10, 10); 197using Bitmap image = new(10, 10); 208using Bitmap image = new(10, 10); 221using Bitmap image = new(10, 10); 234using Bitmap image = new(10, 10);
System\Windows\Forms\DataGridViewRowTests.cs (38)
4196using Bitmap image = new(10, 10); 4212using Bitmap image = new(10, 10); 4235using Bitmap image = new(10, 10); 4592using Bitmap image = new(10, 10); 4616using Bitmap image = new(10, 10); 4642using Bitmap image = new(10, 10); 4666using Bitmap image = new(10, 10); 4690using Bitmap image = new(10, 10); 4714using Bitmap image = new(10, 10); 4738using Bitmap image = new(10, 10); 4763using Bitmap image = new(10, 10); 4788using Bitmap image = new(10, 10); 4796using Bitmap image = new(10, 10); 4873using Bitmap image = new(10, 10); 4999using Bitmap image = new(10, 10); 5038using Bitmap image = new(10, 10); 5062using Bitmap image = new(10, 10); 5088using Bitmap image = new(10, 10); 5112using Bitmap image = new(10, 10); 5136using Bitmap image = new(10, 10); 5160using Bitmap image = new(10, 10); 5184using Bitmap image = new(10, 10); 5209using Bitmap image = new(10, 10); 5234using Bitmap image = new(10, 10); 5308using Bitmap image = new(10, 10); 5327using Bitmap image = new(10, 10); 5358using Bitmap image = new(10, 10); 5382using Bitmap image = new(10, 10); 5408using Bitmap image = new(10, 10); 5432using Bitmap image = new(10, 10); 5456using Bitmap image = new(10, 10); 5480using Bitmap image = new(10, 10); 5504using Bitmap image = new(10, 10); 5529using Bitmap image = new(10, 10); 5554using Bitmap image = new(10, 10); 5631using Bitmap image = new(10, 10); 5647using Bitmap image = new(10, 10); 5665using Bitmap image = new(10, 10);
System\Windows\Forms\DataGridViewTests.cs (2)
3486using Bitmap bitMap1 = new(10, 10); 3487using Bitmap bitMap2 = new(20, 20);
System\Windows\Forms\DataObject_BitmapBinderTests.cs (1)
90new Bitmap(5, 5)
System\Windows\Forms\DataObjectTests.cs (13)
547using Bitmap bitmap1 = new(10, 10); 551using Bitmap bitmap2 = new(10, 10); 621using Bitmap bitmap1 = new(10, 10); 626using Bitmap bitmap2 = new(10, 10); 669Bitmap image = new(10, 10); 934{ new Bitmap(10, 10), typeof(Bitmap).FullName }, 1046using Bitmap image = new(10, 10); 1126using Bitmap image = new(10, 10); 1234((Action)(() => dataObject.SetData(DataFormats.Dib, false, new Bitmap(10, 10)))) 1307using Bitmap image = new(10, 10); 1331using Bitmap image = new(10, 10); 1347using Bitmap image = new(10, 10); 2493using Bitmap bitmap = new(10, 10);
System\Windows\Forms\DateTimePickerTests.cs (4)
544using (Bitmap bmp = new(1, 1)) 552using (Bitmap bmp = new(1, 1)) 718using (Bitmap bmp = new(10, 10)) 726using (Bitmap bmp = new(20, 20))
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
288using var value = Icon.FromHandle(new Bitmap(10, 10).GetHicon());
System\Windows\Forms\DragDropHelperTests.cs (6)
18yield return new object[] { new DataObject(), new Bitmap(1, 1), new Point(1, 1), false }; 20yield return new object[] { new DataObject(), new Bitmap(1, 1), new Point(1, 1), true }; 25yield return new object[] { new DataObject(), new GiveFeedbackEventArgs(DragDropEffects.All, false, new Bitmap(1, 1), new Point(0, 0), false) }; 27yield return new object[] { new DataObject(), new GiveFeedbackEventArgs(DragDropEffects.All, false, new Bitmap(1, 1), new Point(0, 0), true) }; 156using Bitmap bitmap = new(1, 1); 164using Bitmap bitmap = new(1, 1);
System\Windows\Forms\DrawItemEventArgsTests.cs (4)
24using Bitmap image = new(10, 10); 49using Bitmap image = new(10, 10); 89using Bitmap image = new(10, 10); 99using Bitmap image = new(10, 10);
System\Windows\Forms\DrawListViewColumnHeaderEventArgsTests.cs (6)
23using Bitmap image = new(10, 10); 47using Bitmap image = new(10, 10); 75using Bitmap image = new(10, 10); 87using Bitmap image = new(10, 10); 97using Bitmap image = new(10, 10); 113using Bitmap image = new(10, 10);
System\Windows\Forms\DrawListViewItemEventArgsTests.cs (7)
23using Bitmap image = new(10, 10); 44using Bitmap image = new(10, 10); 53using Bitmap image = new(10, 10); 112using Bitmap image = new(10, 10); 122using Bitmap image = new(10, 10); 132using Bitmap image = new(10, 10); 142using Bitmap image = new(10, 10);
System\Windows\Forms\DrawListViewSubItemEventArgsTests.cs (6)
24using Bitmap image = new(10, 10); 47using Bitmap image = new(10, 10); 57using Bitmap image = new(10, 10); 66using Bitmap image = new(10, 10); 116using Bitmap image = new(10, 10); 126using Bitmap image = new(10, 10);
System\Windows\Forms\DrawToolTipEventArgsTests.cs (5)
22using Bitmap image = new(10, 10); 47using Bitmap image = new(10, 10); 57using Bitmap image = new(10, 10); 67using Bitmap image = new(10, 10); 77using Bitmap image = new(10, 10);
System\Windows\Forms\DrawTreeNodeEventArgsTests.cs (2)
22using Bitmap image = new(10, 10); 36using Bitmap image = new(10, 10);
System\Windows\Forms\ErrorProviderTests.cs (3)
535yield return new object[] { Icon.FromHandle(new Bitmap(10, 10).GetHicon()) }; 561provider.Icon = Icon.FromHandle(new Bitmap(10, 10).GetHicon()); 573provider.Icon = Icon.FromHandle(new Bitmap(10, 10).GetHicon());
System\Windows\Forms\GiveFeedbackEventArgsTests.cs (4)
25GiveFeedbackEventArgs e = new(DragDropEffects.None, false, new Bitmap(1, 1), new Point(0, 0), false) 42GiveFeedbackEventArgs e = new(DragDropEffects.None, false, new Bitmap(2, 2), new Point(0, 0), false) 51yield return new object[] { new Bitmap(1, 1) }; 72GiveFeedbackEventArgs e = new(DragDropEffects.None, false, new Bitmap(1, 1), new Point(0, 0), false)
System\Windows\Forms\GroupBoxTests.cs (6)
1849using Bitmap image = new(10, 10); 1887using Bitmap image = new(10, 10); 2087using Bitmap image = new(10, 10); 2125using Bitmap image = new(10, 10); 2188using Bitmap image = new(10, 10); 2233using Bitmap image = new(10, 10);
System\Windows\Forms\ImageList.ImageCollectionTests.cs (92)
50using Bitmap image1bppIndexed = new(1, 2, PixelFormat.Format24bppRgb); 51using Bitmap image24bppRGb = new(3, 4, PixelFormat.Format24bppRgb); 52using Bitmap image32bppRGb = new(5, 6, PixelFormat.Format32bppRgb); 53using Bitmap image32bppArgbNotTransparent = new(7, 8, PixelFormat.Format32bppArgb); 54using Bitmap image32bppArgbTransparent = new(9, 10, PixelFormat.Format32bppArgb); 98using Bitmap image1bppIndexed = new(1, 2, PixelFormat.Format24bppRgb); 99using Bitmap image24bppRGb = new(3, 4, PixelFormat.Format24bppRgb); 100using Bitmap image32bppRGb = new(5, 6, PixelFormat.Format32bppRgb); 101using Bitmap image32bppArgbNotTransparent = new(7, 8, PixelFormat.Format32bppArgb); 102using Bitmap image32bppArgbTransparent = new(9, 10, PixelFormat.Format32bppArgb); 186using Bitmap imageFiller1 = new(16, 16, pixelFormat); 187using Bitmap imageFiller2 = new(16, 16, pixelFormat); 189using Bitmap image = new(16, 16, pixelFormat); 231using Bitmap image = new(10, 10); 242yield return new object[] { transparentColor, new Bitmap(10, 10) }; 243yield return new object[] { transparentColor, new Bitmap(16, 16) }; 244yield return new object[] { transparentColor, new Bitmap(32, 32) }; 245yield return new object[] { transparentColor, new Bitmap(256, 256) }; 247Bitmap bitmap = new(16, 16); 251yield return new object[] { transparentColor, new Bitmap("bitmaps/10x16_one_entry_32bit.ico") }; 259using Bitmap image = new(10, 10); 280using Bitmap image = new(10, 10); 313using Bitmap image = new(10, 10); 323using Bitmap image = new(10, 10); 334using Bitmap image = new(10, 10); 350using Bitmap image1 = new(1, 2); 352using Bitmap image2 = new(3, 4); 382using Bitmap image1 = new(1, 2); 383using Bitmap image2 = new(3, 4); 422yield return new object[] { transparentColor, new Bitmap(10, 10) }; 423yield return new object[] { transparentColor, new Bitmap(16, 16) }; 424yield return new object[] { transparentColor, new Bitmap(32, 32) }; 425yield return new object[] { transparentColor, new Bitmap(256, 256) }; 427Bitmap bitmap = new(16, 16); 579yield return new object[] { listTransparentColor, new Bitmap(10, 10), transparentColor }; 580yield return new object[] { listTransparentColor, new Bitmap(16, 16), transparentColor }; 581yield return new object[] { listTransparentColor, new Bitmap(32, 32), transparentColor }; 582yield return new object[] { listTransparentColor, new Bitmap(256, 256), transparentColor }; 584Bitmap bitmap = new(16, 16); 891yield return new object[] { transparentColor, new Bitmap(16, 16), 1 }; 892yield return new object[] { transparentColor, new Bitmap(32, 16), 2 }; 893yield return new object[] { transparentColor, new Bitmap(256, 16), 16 }; 895Bitmap bitmap = new(16, 16); 952using Bitmap image = new(width, 16); 964using Bitmap image = new(16, width); 992using Bitmap image = new(10, 10); 1035using Bitmap image = new(10, 10); 1057yield return new object[] { new Bitmap(10, 10) }; 1083using Bitmap image1 = new(1, 2); 1084using Bitmap image2 = new(3, 4); 1085using Bitmap image3 = new(5, 6); 1155using Bitmap image1 = new(1, 2); 1157using Bitmap image2 = new(3, 4); 1192using Bitmap image1 = new(1, 2); 1194using Bitmap image2 = new(3, 4); 1239using Bitmap image1 = new(1, 2); 1240using Bitmap image2 = new(3, 4); 1241using Bitmap image3 = new(5, 6); 1271yield return new object[] { new Bitmap(10, 10) }; 1287yield return new object[] { new Bitmap(10, 10) }; 1304using Bitmap image1 = new(1, 2); 1306using Bitmap image2 = new(3, 4); 1308using Bitmap image3 = new(3, 4); 1338using Bitmap image1 = new(1, 2); 1340using Bitmap image2 = new(3, 4); 1342using Bitmap image3 = new(3, 4); 1391using Bitmap image = new(10, 10); 1402using Bitmap image1 = new(1, 2); 1404using Bitmap image2 = new(3, 4); 1406using Bitmap image3 = new(3, 4); 1442using Bitmap image1 = new(1, 2); 1444using Bitmap image2 = new(3, 4); 1446using Bitmap image3 = new(3, 4); 1494using Bitmap image1 = new(1, 2); 1496using Bitmap image2 = new(3, 4); 1498using Bitmap image3 = new(3, 4); 1543using Bitmap image1 = new(1, 2); 1544using Bitmap image2 = new(3, 4); 1564using Bitmap image1 = new(1, 2); 1565using Bitmap image2 = new(3, 4); 1597using Bitmap image = new(10, 10); 1632using Bitmap image = new(10, 10); 1653using Bitmap image = new(10, 10); 1679using Bitmap value = new(1, 2); 1688using Bitmap image = new(10, 10); 1693using Bitmap value = new(1, 2); 1707using Bitmap image = new(10, 10); 1718using Bitmap image = new(10, 10); 1729yield return new object[] { new Bitmap(10, 10) }; 1760yield return new object[] { new Bitmap(10, 10) }; 1795yield return new object[] { index, new Bitmap(10, 10) }; 1812yield return new object[] { new Bitmap(10, 10) };
System\Windows\Forms\ImageListTests.cs (32)
200list.Images.Add(new Bitmap(10, 10)); 394list.Images.Add(new Bitmap(10, 10)); 432list.Images.Add(new Bitmap(10, 10)); 461using Bitmap image = new(10, 10); 498Bitmap image = new(10, 10); 525Bitmap image = new(10, 10); 550Bitmap image = new(10, 10); 575Bitmap image = new(10, 10); 599Bitmap image = new(10, 10); 625list.Images.Add(new Bitmap(10, 10)); 644list.Images.Add(new Bitmap(10, 10)); 810list.Images.Add(new Bitmap(10, 10)); 831using Bitmap bitmap = new(10, 10); 852using Bitmap bitmap1 = new(10, 10); 853using Bitmap bitmap2 = new(10, 10); 887using Bitmap bitmap = new(10, 10); 927using Bitmap image = new(10, 10); 930using Bitmap sourceImage = new(10, 10); 941using Bitmap image = new(10, 10); 945using Bitmap sourceImage = new(10, 10); 956using Bitmap image = new(10, 10); 959using Bitmap sourceImage = new(10, 10); 970using Bitmap image = new(10, 10); 974using Bitmap sourceImage = new(10, 10); 994using Bitmap image = new(10, 10); 997using Bitmap sourceImage = new(10, 10); 1008using Bitmap image = new(10, 10); 1012using Bitmap sourceImage = new(10, 10); 1022using Bitmap image = new(10, 10); 1037using Bitmap sourceImage = new(10, 10); 1050using Bitmap image = new(10, 10); 1053using Bitmap sourceImage = new(10, 10);
System\Windows\Forms\LabelTests.cs (9)
504using Bitmap image1 = new(10, 10); 513using Bitmap image2 = new(50, 10); 542using Bitmap image = new(10, 10); 614using Bitmap bitmap1 = new(10, 10); 615using Bitmap bitmap2 = new(10, 10); 648using Bitmap bitmap1 = new(10, 10); 649using Bitmap bitmap2 = new(10, 10); 682using Bitmap image = new(10, 10); 708using Bitmap bitmap = new(10, 10);
System\Windows\Forms\ListBoxTests.cs (4)
503using Bitmap image1 = new(10, 10); 514using Bitmap image2 = new(10, 10); 5518Bitmap bitmap = new(10, 10); 5639using Bitmap bitmap = new(10, 10);
System\Windows\Forms\ListViewGroupTests.cs (3)
216groupImageList.Images.Add(new Bitmap(10, 10)); 217groupImageList.Images.Add(new Bitmap(20, 20)); 357groupImageList.Images.Add(value.Key, new Bitmap(10, 10));
System\Windows\Forms\ListViewTests.cs (3)
643BackgroundImage = new Bitmap(10, 10), 703BackgroundImage = new Bitmap(10, 10) 4293nonEmptyImageList.Images.Add(new Bitmap(10, 10));
System\Windows\Forms\MdiClientTests.cs (4)
178using Bitmap image = new(10, 10); 225using Bitmap image1 = new(10, 10); 236using Bitmap image2 = new(10, 10); 257using Bitmap image = new(10, 10);
System\Windows\Forms\MdiControlStripTests.cs (1)
329HICON hicon = (HICON)new Bitmap(256, 256).GetHicon();
System\Windows\Forms\MeasureItemEventArgsTests.cs (4)
13Bitmap image = new(10, 10); 34Bitmap image = new(10, 10); 59using Bitmap image = new(10, 10); 74using Bitmap image = new(10, 10);
System\Windows\Forms\MenuStripTests.cs (3)
441yield return new object[] { string.Empty, new Bitmap(10, 10), onClick }; 442yield return new object[] { "text", new Bitmap(10, 10), onClick }; 460yield return new object[] { new Bitmap(10, 10), onClick };
System\Windows\Forms\MonthCalendarTests.cs (2)
403using Bitmap image1 = new(10, 10); 414using Bitmap image2 = new(10, 10);
System\Windows\Forms\PaintEventArgsTests.cs (3)
22using Bitmap image = new(10, 10); 39using Bitmap image = new(10, 10); 51using Bitmap image = new(10, 10);
System\Windows\Forms\PictureBoxTests.cs (20)
333ErrorImage = new Bitmap(10, 10) 369ErrorImage = new Bitmap(10, 10) 386using Bitmap image = new(10, 10); 403using Bitmap image = new(10, 10); 549Image = new Bitmap(10, 10) 581Image = new Bitmap(10, 10) 596using Bitmap image = new(10, 10); 613using Bitmap image = new(10, 10); 650using Bitmap image = new(10, 10); 808yield return new object[] { new Bitmap(10, 10), new Bitmap(10, 10), value }; 809yield return new object[] { new Bitmap(10, 10), null, value }; 810yield return new object[] { null, new Bitmap(10, 10), value }; 1030InitialImage = new Bitmap(10, 10) 1066InitialImage = new Bitmap(10, 10) 1083using Bitmap image = new(10, 10); 1100using Bitmap image = new(10, 10); 1926using Bitmap image = new(10, 10); 2496using Bitmap image = new(10, 10); 2588Image = new Bitmap(10, 10)
System\Windows\Forms\ProgressBarRendererTest.cs (2)
66using Bitmap bitmap1 = new(100, 100); 67using Bitmap bitmap2 = new(100, 100);
System\Windows\Forms\ProgressBarTests.cs (2)
247Bitmap image1 = new(10, 10); 258Bitmap image2 = new(10, 10);
System\Windows\Forms\PropertyGrid.PropertyTabCollectionTests.cs (1)
79_bitmap = new Bitmap(1, 1);
System\Windows\Forms\PropertyGridTests.cs (3)
440using Bitmap image1 = new(10, 10); 451using Bitmap image2 = new(10, 10); 2378public override Bitmap Bitmap => new(10, 10);
System\Windows\Forms\RichTextBoxTests.ClipboardTests.cs (1)
21using Bitmap bitmap = new(100, 100);
System\Windows\Forms\RichTextBoxTests.cs (3)
768using Bitmap image1 = new(10, 10); 779using Bitmap image2 = new(10, 10); 10661using Bitmap bitmap1 = new(10, 10);
System\Windows\Forms\ScrollableControlTests.cs (45)
1510foreach (Image backgroundImage in new Image[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb), new Bitmap(10, 10, PixelFormat.Format32bppArgb) }) 1530using Bitmap image = new(10, 10); 1582foreach (Image backgroundImage in new Image[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb) }) 1596yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 1597yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 1598yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 1 }; 1599yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 1 }; 1600yield return new object[] { parentFactory(), hScroll, vScroll, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 1601yield return new object[] { parentFactory(), hScroll, vScroll, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 1603yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 1604yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 1605yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 2 }; 1606yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 2 }; 1607yield return new object[] { parentFactory(), hScroll, vScroll, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 1608yield return new object[] { parentFactory(), hScroll, vScroll, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 1626foreach (Image backgroundImage in new Image[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb) }) 1646yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 1647yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 1648yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, expected1 }; 1649yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, expected1 }; 1650yield return new object[] { parentFactory(), hScroll, vScroll, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 1651yield return new object[] { parentFactory(), hScroll, vScroll, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 1653yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected1 }; 1654yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected1 }; 1655yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected1 }; 1656yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected1 }; 1657yield return new object[] { parentFactory(), hScroll, vScroll, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected1 }; 1658yield return new object[] { parentFactory(), hScroll, vScroll, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected1 }; 1677using Bitmap image = new(10, 10); 1729using Bitmap image = new(10, 10); 1782foreach (Image backgroundImage in new Image[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb) }) 1796yield return new object[] { hScroll, vScroll, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 1797yield return new object[] { hScroll, vScroll, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 1798yield return new object[] { hScroll, vScroll, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 1 }; 1799yield return new object[] { hScroll, vScroll, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 1 }; 1800yield return new object[] { hScroll, vScroll, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 1801yield return new object[] { hScroll, vScroll, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 1803yield return new object[] { hScroll, vScroll, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 1804yield return new object[] { hScroll, vScroll, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 1805yield return new object[] { hScroll, vScroll, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 1806yield return new object[] { hScroll, vScroll, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 1807yield return new object[] { hScroll, vScroll, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 1808yield return new object[] { hScroll, vScroll, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 1817using Bitmap image = new(10, 10);
System\Windows\Forms\ScrollBarTests.cs (2)
275using Bitmap image1 = new(10, 10); 286using Bitmap image2 = new(10, 10);
System\Windows\Forms\SplitterTests.cs (2)
229using Bitmap image1 = new(10, 10); 240using Bitmap image2 = new(10, 10);
System\Windows\Forms\StatusStripTests.cs (4)
875yield return new object[] { string.Empty, new Bitmap(10, 10), onClick }; 876yield return new object[] { "text", new Bitmap(10, 10), onClick }; 877yield return new object[] { "-", new Bitmap(10, 10), onClick }; 1210using Bitmap image = new(10, 10);
System\Windows\Forms\TabControlTests.cs (6)
647using Bitmap image1 = new(10, 10); 658using Bitmap image2 = new(10, 10); 1265using Bitmap image1 = new(10, 10); 1266using Bitmap image2 = new(10, 10); 1267using Bitmap image3 = new(10, 10); 4220Bitmap bitmap = new(10, 10);
System\Windows\Forms\TableLayoutCellPaintEventArgsTests.cs (1)
23using Bitmap image = new(10, 10);
System\Windows\Forms\TableLayoutPanelTests.cs (3)
1208Bitmap image = new(10, 10); 1429using Bitmap image = new(10, 10); 1469using Bitmap image = new(10, 10);
System\Windows\Forms\TabPageTests.cs (32)
3958foreach (Image backgroundImage in new Image[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb), new Bitmap(10, 10, PixelFormat.Format32bppArgb) }) 3976using Bitmap image = new(10, 10); 4012foreach (Image backgroundImage in new Image[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb) }) 4025yield return new object[] { appearance, useVisualStyleBackColor, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 4026yield return new object[] { appearance, useVisualStyleBackColor, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 4027yield return new object[] { appearance, useVisualStyleBackColor, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 1 }; 4028yield return new object[] { appearance, useVisualStyleBackColor, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 1 }; 4029yield return new object[] { appearance, useVisualStyleBackColor, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 4030yield return new object[] { appearance, useVisualStyleBackColor, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 4032yield return new object[] { appearance, useVisualStyleBackColor, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4033yield return new object[] { appearance, useVisualStyleBackColor, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4034yield return new object[] { appearance, useVisualStyleBackColor, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4035yield return new object[] { appearance, useVisualStyleBackColor, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4036yield return new object[] { appearance, useVisualStyleBackColor, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4037yield return new object[] { appearance, useVisualStyleBackColor, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4046using Bitmap image = new(10, 10); 4102using Bitmap image = new(10, 10); 4151foreach (Image backgroundImage in new Image[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb) }) 4164yield return new object[] { appearance, useVisualStyleBackColor, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 4165yield return new object[] { appearance, useVisualStyleBackColor, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 4166yield return new object[] { appearance, useVisualStyleBackColor, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 1 }; 4167yield return new object[] { appearance, useVisualStyleBackColor, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 1 }; 4168yield return new object[] { appearance, useVisualStyleBackColor, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 4169yield return new object[] { appearance, useVisualStyleBackColor, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 4171yield return new object[] { appearance, useVisualStyleBackColor, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4172yield return new object[] { appearance, useVisualStyleBackColor, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4173yield return new object[] { appearance, useVisualStyleBackColor, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4174yield return new object[] { appearance, useVisualStyleBackColor, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4175yield return new object[] { appearance, useVisualStyleBackColor, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4176yield return new object[] { appearance, useVisualStyleBackColor, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4185using Bitmap image = new(10, 10);
System\Windows\Forms\TextRendererTests.cs (16)
35using Bitmap image = new(10, 10); 69using Bitmap image = new(10, 10); 106using Bitmap image = new(10, 10); 147using Bitmap image = new(10, 10); 179using Bitmap image = new(10, 10); 215using Bitmap image = new(10, 10); 255using Bitmap image = new(10, 10); 299using Bitmap image = new(10, 10); 311using Bitmap image = new(10, 10); 472using Bitmap image = new(10, 10); 487using Bitmap image = new(10, 10); 502using Bitmap image = new(10, 10); 517using Bitmap image = new(10, 10); 536using Bitmap image = new(10, 10); 725using Bitmap image = new(200, 50); 802using Bitmap image = new(200, 50);
System\Windows\Forms\ToolStripArrowRenderEventArgsTests.cs (4)
19Bitmap image = new(10, 10); 49using Bitmap image = new(10, 10); 69using Bitmap image = new(10, 10); 84using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripButtonTests.cs (9)
178yield return new object[] { new Bitmap(10, 10) }; 267yield return new object[] { text, new Bitmap(10, 10) }; 357yield return new object[] { string.Empty, new Bitmap(10, 10), onClick }; 358yield return new object[] { "text", new Bitmap(10, 10), onClick }; 455yield return new object[] { string.Empty, new Bitmap(10, 10), onClick, string.Empty, string.Empty }; 456yield return new object[] { "text", new Bitmap(10, 10), onClick, "name", "name" }; 1264using Bitmap image = new(10, 10); 1355using Bitmap image = new(10, 10); 1448Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripComboBox.ToolStripComboBoxControl.ToolStripComboBoxFlatComboAdapterTests.cs (1)
77using Bitmap bitmap = new(100, 100);
System\Windows\Forms\ToolStripComboBoxTests.cs (1)
144using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripContentPanelRenderEventArgsTests.cs (3)
12Bitmap image = new(10, 10); 30using Bitmap image = new(10, 10); 44using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripContentPanelTests.cs (1)
1853using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripControlHostTests.cs (11)
28BackgroundImage = new Bitmap(10, 10), 399yield return new object[] { new Bitmap(10, 10) }; 431using Bitmap value = new(10, 10); 558using Bitmap backgroundImage = new(10, 10); 852foreach (Image image in new Image[] { null, new Bitmap(10, 10) }) 1210yield return new object[] { imageTransparentColor, new Bitmap(10, 10) }; 1336yield return new object[] { new Bitmap(10, 10), color }; 1368foreach (Image image in new Image[] { null, new Bitmap(10, 10) }) 2394foreach (Image image in new Image[] { null, new Bitmap(10, 10) }) 3039foreach (Image image in new Image[] { null, new Bitmap(10, 10) }) 4108using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripDropDownItemTests.cs (6)
99yield return new object[] { string.Empty, new Bitmap(10, 10), onClick }; 100yield return new object[] { "text", new Bitmap(10, 10), onClick }; 198yield return new object[] { string.Empty, new Bitmap(10, 10), onClick, string.Empty, string.Empty }; 199yield return new object[] { "text", new Bitmap(10, 10), onClick, "name", "name" }; 295yield return new object[] { string.Empty, new Bitmap(10, 10), Array.Empty<ToolStripItem>(), Array.Empty<ToolStripItem>() }; 298yield return new object[] { "text", new Bitmap(10, 10), items, items };
System\Windows\Forms\ToolStripDropDownTests.cs (5)
823using Bitmap image1 = new(10, 10); 834using Bitmap image2 = new(10, 10); 2953yield return new object[] { string.Empty, new Bitmap(10, 10), onClick }; 2954yield return new object[] { "text", new Bitmap(10, 10), onClick }; 2972yield return new object[] { new Bitmap(10, 10), onClick };
System\Windows\Forms\ToolStripGripRenderEventArgsTests.cs (2)
12Bitmap image = new(10, 10); 29Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripItemCollectionTests.cs (2)
339using Bitmap image = new(10, 10); 353using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripItemImageRenderEventArgsTests.cs (6)
12Bitmap image = new(10, 10); 29Bitmap image = new(10, 10); 74using Bitmap image = new(10, 10); 92yield return new object[] { new ToolStripButton(), new Bitmap(10, 10), new Rectangle(1, 2, 3, 4) }; 93yield 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)
12Bitmap image = new(10, 10); 29Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripItemTests.cs (56)
98yield return new object[] { string.Empty, new Bitmap(10, 10), onClick }; 99yield return new object[] { "text", new Bitmap(10, 10), onClick }; 193yield return new object[] { string.Empty, new Bitmap(10, 10), onClick, string.Empty, string.Empty }; 194yield return new object[] { "text", new Bitmap(10, 10), onClick, "name", "name" }; 1290foreach (Image image in new Image[] { null, new Bitmap(10, 10) }) 1768yield return new object[] { new Bitmap(10, 10) }; 1864yield return new object[] { new Bitmap(10, 10), 1 }; 2510foreach (Image image in new Image[] { null, new Bitmap(10, 10) }) 2844foreach (Image image in new Image[] { null, new Bitmap(10, 10) }) 3693using Bitmap image = new(10, 10); 3714using Bitmap image = new(10, 10); 3761using Bitmap image = new(10, 10); 3784yield return new object[] { imageTransparentColor, new Bitmap(10, 10) }; 3814yield return new object[] { imageTransparentColor, new Bitmap(10, 10), -1 }; 3844using Bitmap oldValue = new(10, 10); 3865using Bitmap oldValue = new(10, 10); 3888yield return new object[] { imageTransparentColor, new Bitmap(10, 10), 1 }; 4087using Bitmap image = new(10, 10); 4101using Bitmap image = new(10, 10); 4115using Bitmap otherImage = new(10, 10); 4132using Bitmap image = new(10, 10); 4146using Bitmap image = new(10, 10); 4160using Bitmap otherImage = new(10, 10); 4406using Bitmap image = new(10, 10); 4498using Bitmap image = new(10, 10); 4641using Bitmap image = new(10, 10); 4758using Bitmap image = new(10, 10); 4783using Bitmap image = new(10, 10); 4837using Bitmap image = new(10, 10); 4861using Bitmap image = new(10, 10); 4914using Bitmap image = new(10, 10); 5000using Bitmap image = new(10, 10); 5137using Bitmap image = new(10, 10); 5251using Bitmap image = new(10, 10); 5282using Bitmap image = new(10, 10); 5343using Bitmap image = new(10, 10); 5374using Bitmap image = new(10, 10); 5602yield return new object[] { new Bitmap(10, 10), color }; 5668yield return new object[] { new Bitmap(10, 10), Color.Empty, 0 }; 5669yield return new object[] { new Bitmap(10, 10), Color.Red, 1 }; 5735yield return new object[] { new Bitmap(10, 10), Color.Empty, 0 }; 5736yield return new object[] { new Bitmap(10, 10), Color.Red, 1 }; 6947foreach (Image image in new Image[] { null, new Bitmap(10, 10) }) 9340foreach (Image image in new Image[] { null, new Bitmap(10, 10) }) 9874using Bitmap image = new(10, 10); 9910using Bitmap image = new(10, 10); 9952using Bitmap image = new(10, 10); 10025using Bitmap image = new(10, 10); 10063using Bitmap image = new(10, 10); 10107using Bitmap image = new(10, 10); 11096foreach (Image image in new Image[] { null, new Bitmap(10, 10) }) 12523foreach (Image image in new Image[] { null, new Bitmap(10, 10) }) 13189foreach (Image image in new Image[] { null, new Bitmap(10, 10) }) 14168item.Image = new Bitmap(10, 10); 14820foreach (Image image in new Image[] { null, new Bitmap(10, 10) }) 15002foreach (Image image in new Image[] { null, new Bitmap(10, 10) })
System\Windows\Forms\ToolStripItemTextRenderEventArgsTests.cs (4)
21using Bitmap image = new(10, 10); 47using Bitmap image = new(10, 10); 64using Bitmap image = new(10, 10); 80using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripLabelTests.cs (4)
40using Bitmap image = new(10, 10); 52using Bitmap image = new(10, 10); 65using Bitmap image = new(10, 10); 79using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripMenuItemTests.cs (8)
191using Bitmap image = new(10, 10); 206using Bitmap image = new(10, 10); 224using Bitmap image = new(10, 10); 242using Bitmap image = new(10, 10); 277BackgroundImage = new Bitmap(10, 10), 288Image = new Bitmap(10, 10), 364accessor.t_indeterminateCheckedImage = new Bitmap(10, 10); 365accessor.t_checkedImage = new Bitmap(10, 10);
System\Windows\Forms\ToolStripPanelRenderEventArgsTests.cs (3)
12Bitmap image = new(10, 10); 30using Bitmap image = new(10, 10); 44using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripRendererTests.cs (17)
14using Bitmap image = new(10, 11); 44using Bitmap image = new(10, 10); 79Bitmap image = new(10, 10); 136Bitmap image = new(10, 10); 191Bitmap image = new(10, 10); 193yield return new object[] { graphics, new SubToolStripItem(), new Bitmap(10, 10), new Rectangle(1, 2, 3, 4) }; 194yield return new object[] { graphics, new SubToolStripItem { Enabled = false }, new Bitmap(10, 10), new Rectangle(1, 2, 3, 4) }; 198yield return new object[] { graphics, new SubToolStripItem { ImageScaling = imageScaling }, new Bitmap(10, 10), new Rectangle(1, 2, 3, 4) }; 312using Bitmap image = new(10, 10); 419Bitmap image = new(10, 10); 485using Bitmap image = new(10, 10); 520Bitmap image = new(10, 10); 602Bitmap image = new(10, 10); 659Bitmap image = new(10, 10); 724using Bitmap image = new(10, 10); 841using Bitmap image = new(10, 10); 918using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripRenderEventArgsTests.cs (4)
12Bitmap image = new(10, 10); 39using Bitmap image = new(10, 10); 63using Bitmap image = new(10, 10); 92using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripSeparatorRenderEventArgsTests.cs (2)
12Bitmap image = new(10, 10); 29Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripSeparatorTests.cs (7)
113yield return new object[] { new Bitmap(10, 10) }; 244foreach (Image image in new Image[] { null, new Bitmap(10, 10) }) 420yield return new object[] { imageTransparentColor, new Bitmap(10, 10) }; 530yield return new object[] { new Bitmap(10, 10), color }; 1117Bitmap image = new(10, 10); 1211using Bitmap image = new(10, 10); 1282using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripSplitButtonTests.cs (5)
99using Bitmap image = new(10, 10); 110using Bitmap image = new(10, 10); 124using Bitmap image = new(10, 10); 141using Bitmap image = new(10, 10); 156using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripStatusLabelTests.cs (4)
36using Bitmap sampleImage = new(10, 10); 46using Bitmap sampleImage = new(10, 10); 56using Bitmap sampleImage = new(10, 10); 74using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripTests.cs (50)
4271yield return new object[] { string.Empty, new Bitmap(10, 10), onClick }; 4272yield return new object[] { "text", new Bitmap(10, 10), onClick }; 4290yield return new object[] { new Bitmap(10, 10), onClick }; 5851foreach (Image backgroundImage in new Image[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb), new Bitmap(10, 10, PixelFormat.Format32bppArgb) }) 5871using Bitmap image = new(10, 10); 5924foreach (Image backgroundImage in new Image[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb) }) 5938yield return new object[] { parent, hScroll, vScroll, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 5939yield return new object[] { parent, hScroll, vScroll, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 5940yield return new object[] { parent, hScroll, vScroll, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 1 }; 5941yield return new object[] { parent, hScroll, vScroll, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 1 }; 5942yield return new object[] { parent, hScroll, vScroll, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 5943yield return new object[] { parent, hScroll, vScroll, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 5945yield return new object[] { parent, hScroll, vScroll, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 5946yield return new object[] { parent, hScroll, vScroll, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 5947yield return new object[] { parent, hScroll, vScroll, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 2 }; 5948yield return new object[] { parent, hScroll, vScroll, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 2 }; 5949yield return new object[] { parent, hScroll, vScroll, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 5950yield return new object[] { parent, hScroll, vScroll, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 5976foreach (Image backgroundImage in new Image[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb) }) 5996yield return new object[] { parent, hScroll, vScroll, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, expected1 }; 5997yield return new object[] { parent, hScroll, vScroll, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, expected1 }; 5998yield return new object[] { parent, hScroll, vScroll, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, expected1 }; 5999yield return new object[] { parent, hScroll, vScroll, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, expected1 }; 6000yield return new object[] { parent, hScroll, vScroll, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, expected2 }; 6001yield return new object[] { parent, hScroll, vScroll, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, expected2 }; 6003yield return new object[] { parent, hScroll, vScroll, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected2 }; 6004yield return new object[] { parent, hScroll, vScroll, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected2 }; 6005yield return new object[] { parent, hScroll, vScroll, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected2 }; 6006yield return new object[] { parent, hScroll, vScroll, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected2 }; 6007yield return new object[] { parent, hScroll, vScroll, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected2 }; 6008yield return new object[] { parent, hScroll, vScroll, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected2 }; 6018using Bitmap image = new(10, 10); 6069using Bitmap image = new(10, 10); 6122foreach (Image backgroundImage in new Image[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb) }) 6135yield return new object[] { hScroll, vScroll, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 6136yield return new object[] { hScroll, vScroll, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 6137yield return new object[] { hScroll, vScroll, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 1 }; 6138yield return new object[] { hScroll, vScroll, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 1 }; 6139yield return new object[] { hScroll, vScroll, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 6140yield return new object[] { hScroll, vScroll, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 6142yield return new object[] { hScroll, vScroll, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 6143yield return new object[] { hScroll, vScroll, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 6144yield return new object[] { hScroll, vScroll, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 6145yield return new object[] { hScroll, vScroll, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 6146yield return new object[] { hScroll, vScroll, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 6147yield return new object[] { hScroll, vScroll, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 6156using Bitmap image = new(10, 10); 6231using Bitmap image = new(10, 10); 6260using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripTextBoxTests.cs (1)
55using Image image = new Bitmap(width, height);
System\Windows\Forms\TrackBarRendererTests.cs (1)
18_bitmap = new(100, 100);
System\Windows\Forms\TreeNodeTests.cs (51)
1000using Bitmap image = new(10, 10); 1039using Bitmap image = new(10, 10); 1073using Bitmap image = new(10, 10); 1104using Bitmap image = new(10, 10); 1119using Bitmap image1 = new(10, 10); 1120using Bitmap image2 = new(10, 10); 1186using Bitmap image = new(10, 10); 1253using Bitmap image1 = new(10, 10); 1254using Bitmap image2 = new(10, 10); 1410using Bitmap image1 = new(10, 10); 1411using Bitmap image2 = new(10, 10); 1500using Bitmap image1 = new(10, 10); 1501using Bitmap image2 = new(10, 10); 1530using Bitmap image1 = new(10, 10); 1531using Bitmap image2 = new(10, 10); 2982using Bitmap image = new(10, 10); 3021using Bitmap image = new(10, 10); 3055using Bitmap image = new(10, 10); 3086using Bitmap image = new(10, 10); 3101using Bitmap image1 = new(10, 10); 3102using Bitmap image2 = new(10, 10); 3168using Bitmap image = new(10, 10); 3208using Bitmap image1 = new(10, 10); 3209using Bitmap image2 = new(10, 10); 3237using Bitmap image1 = new(10, 10); 3238using Bitmap image2 = new(10, 10); 3394using Bitmap image1 = new(10, 10); 3395using Bitmap image2 = new(10, 10); 3484using Bitmap image1 = new(10, 10); 3485using Bitmap image2 = new(10, 10); 3514using Bitmap image1 = new(10, 10); 3515using Bitmap image2 = new(10, 10); 3605using Bitmap image = new(10, 10); 3648using Bitmap image = new(10, 10); 3697using Bitmap image = new(10, 10); 3729using Bitmap image = new(10, 10); 3752using Bitmap image1 = new(10, 10); 3753using Bitmap image2 = new(10, 10); 3873using Bitmap image1 = new(10, 10); 3874using Bitmap image2 = new(10, 10); 3903using Bitmap image1 = new(10, 10); 3904using Bitmap image2 = new(10, 10); 3966using Bitmap image = new(10, 10); 4142using Bitmap image1 = new(10, 10); 4143using Bitmap image2 = new(10, 10); 4243using Bitmap image1 = new(10, 10); 4244using Bitmap image2 = new(10, 10); 4281using Bitmap image1 = new(10, 10); 4282using Bitmap image2 = new(10, 10); 4441using Bitmap image1 = new(10, 10); 4442using Bitmap image2 = new(10, 10);
System\Windows\Forms\TreeViewTests.cs (30)
820using Bitmap image1 = new(10, 10); 831using Bitmap image2 = new(10, 10); 2102imageList.Images.Add(new Bitmap(10, 10)); 2103imageList.Images.Add(new Bitmap(10, 10)); 2126imageList.Images.Add(new Bitmap(10, 10)); 2127imageList.Images.Add("imageKey", new Bitmap(10, 10)); 2194imageList.Images.Add(new Bitmap(10, 10)); 2195imageList.Images.Add(new Bitmap(10, 10)); 2310imageList.Images.Add(new Bitmap(10, 10)); 2311imageList.Images.Add("imageKey", new Bitmap(10, 10)); 2336imageList.Images.Add(new Bitmap(10, 10)); 2337imageList.Images.Add("imageKey", new Bitmap(10, 10)); 2397imageList.Images.Add(new Bitmap(10, 10)); 2398imageList.Images.Add("imageKey", new Bitmap(10, 10)); 2421imageList.Images.Add(new Bitmap(10, 10)); 3462imageList.Images.Add(new Bitmap(10, 10)); 3463imageList.Images.Add(new Bitmap(10, 10)); 3486imageList.Images.Add(new Bitmap(10, 10)); 3487imageList.Images.Add("imageKey", new Bitmap(10, 10)); 3554imageList.Images.Add(new Bitmap(10, 10)); 3555imageList.Images.Add(new Bitmap(10, 10)); 3660imageList.Images.Add(new Bitmap(10, 10)); 3661imageList.Images.Add("imageKey", new Bitmap(10, 10)); 3686imageList.Images.Add(new Bitmap(10, 10)); 3687imageList.Images.Add("imageKey", new Bitmap(10, 10)); 3747imageList.Images.Add(new Bitmap(10, 10)); 3748imageList.Images.Add("imageKey", new Bitmap(10, 10)); 5666Bitmap image = new(10, 10); 6004yield return new object[] { new Image[] { new Bitmap(10, 10) }, null, true }; 6006yield return new object[] { new Image[] { new Bitmap(10, 10) }, new EventArgs(), true };
System\Windows\Forms\UpDownBaseTests.cs (4)
632using Bitmap image1 = new(10, 10); 643using Bitmap image2 = new(10, 10); 2245using Bitmap image = new(10, 10); 2281using Bitmap image = new(10, 10);
System\Windows\Forms\UserControlTests.cs (2)
1094using Bitmap backgroundImage = new(10, 10); 1192using Bitmap backgroundImage = new(10, 10);
System\Windows\Forms\VisualStyles\VisualStyleRendererTests.cs (25)
136using Bitmap bitmap = new(10, 10); 170using Bitmap bitmap = new(10, 10); 205using Bitmap bitmap = new(10, 10); 223using Bitmap bitmap = new(10, 10); 233using Bitmap bitmap = new(10, 10); 243using Bitmap bitmap = new(10, 10); 267using Bitmap bitmap = new(10, 10); 269using Bitmap image = new(10, 10); 280using Bitmap bitmap = new(10, 10); 282using Bitmap image = new(10, 10); 293using Bitmap image = new(10, 10); 303using Bitmap image = new(10, 10); 304using Bitmap bitmap = new(10, 10); 313using Bitmap image = new(10, 10); 314using Bitmap bitmap = new(10, 10); 325using Bitmap bitmap = new(10, 10); 327using Bitmap image = new(10, 10); 352using Bitmap bitmap = new(10, 10); 379using Bitmap bitmap = new(10, 10); 418using Bitmap bitmap = new(10, 10); 449using Bitmap bitmap = new(10, 10); 480using Bitmap bitmap = new(10, 10); 490using Bitmap image = new(10, 10); 571using Bitmap image = new(10, 10); 583using Bitmap image = new(10, 10);
TextBoxBaseTests.cs (2)
470using Bitmap image1 = new(10, 10); 481using Bitmap image2 = new(10, 10);
ToolStripContainerTests.cs (3)
72using Image value = new Bitmap(10, 10); 85_toolStripContainer.BackgroundImage = new Bitmap(10, 10); 90_toolStripContainer.BackgroundImage = new Bitmap(20, 20);
TrackBarTests.cs (3)
465using Bitmap image1 = new(10, 10); 476using Bitmap image2 = new(10, 10); 3243using Bitmap bitmap = new(bitmapWidth, bitmapHeight);
WebBrowserBaseTests.cs (5)
672using Bitmap bitmap = new(20, 20); 694using Bitmap bitmap = new(20, 20); 723using Bitmap bitmap = new(10, 10); 737using Bitmap bitmap = new(10, 10); 751using 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)
21private readonly Bitmap _dragImage = new("./Resources/move.bmp"); 890private readonly Bitmap _dragImage = new("./Resources/image.png"); 891private 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)
183SD.Bitmap bitmap = new SD.Bitmap(control.ClientRectangle.Width, control.ClientRectangle.Height); 201SD.Bitmap returnBitmap = new SD.Bitmap(childElementHost.ClientRectangle.Width, childElementHost.ClientRectangle.Height); 285return new SD.Bitmap(1, 1); 302SD.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]));
2205 references to Bitmap
Accessibility_Core_App (2)
Properties\Resources.Designer.cs (2)
66internal static System.Drawing.Bitmap TestResult { 69return ((System.Drawing.Bitmap)(obj));
Microsoft.VisualBasic.Tests (1)
Microsoft\VisualBasic\MyServices\ClipboardProxyTests.cs (1)
69using Bitmap image = new(2, 2);
PresentationFramework-SystemDrawing (9)
SystemDrawingExtension.cs (9)
28return data is Bitmap; 74Bitmap bitmapData = GetBitmapImpl(data); 93Bitmap bitmap = data as Bitmap; 107Bitmap bmp = new Bitmap(bitmapwidth, bitmapheight); 119Bitmap img = new Bitmap(stream); 134private static Bitmap GetBitmapImpl(object data) 154return data as Bitmap; 166Bitmap bitmapFinal = new Bitmap(
PresentationUI (20)
artifacts\obj\PresentationUI\x86\Debug\net9.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 (7)
Special\NotSupported.cs (7)
27public System.Drawing.Bitmap Clone(System.Drawing.Rectangle rect, System.Drawing.Imaging.PixelFormat format) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 28public System.Drawing.Bitmap Clone(System.Drawing.RectangleF rect, System.Drawing.Imaging.PixelFormat format) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 29public static System.Drawing.Bitmap FromHicon(System.IntPtr hicon) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 30public static System.Drawing.Bitmap FromResource(System.IntPtr hinstance, string bitmapName) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 722public System.Drawing.Bitmap ToBitmap() { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 780public static System.Drawing.Bitmap FromHbitmap(System.IntPtr hbitmap) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 781public static System.Drawing.Bitmap FromHbitmap(System.IntPtr hbitmap, System.IntPtr hpalette) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
System.Drawing.Common.Tests (902)
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 (194)
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); 2825using Bitmap bitmap = new(10, 10); 2834using Bitmap bitmap = new(10, 10); 2845using Bitmap bitmap = new(10, 10); 2855using Bitmap bitmap = new(10, 10); 2866using Bitmap bitmap = new(10, 10); 2883using Bitmap bitmap = new(10, 10, sourceFormat); 2887using Bitmap bitmap2 = new(10, 10, destinationFormat); 2901internal static unsafe void VerifyBitmapEmpty(Bitmap bitmap) 2915internal static unsafe void VerifyBitmapNotEmpty(Bitmap bitmap) 2933using Bitmap bitmap = new(10, 10); 2942using Bitmap bitmap = new(10, 10); 2951using Bitmap bitmap = new(10, 10); 2960using 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)
23using Bitmap bitmap = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 31using Bitmap bitmap = new(1, 1); 39using Bitmap bitmap = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 81using Bitmap bitmap = new(Helpers.GetTestBitmapPath("almogaver1bit.bmp")); 89using Bitmap bitmap = new(1, 1); 97using Bitmap bitmap = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 111using Bitmap bitmap = new(1, 1); 121using Bitmap bitmap = new(Helpers.GetTestBitmapPath("almogaver1bit.bmp")); 128using Bitmap source = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 132using Bitmap bitmap = new(1, 1); 156using Bitmap bitmap = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 179using Bitmap bitmap = new(1, 1); 189using Bitmap bitmap = new(Helpers.GetTestBitmapPath("almogaver1bit.bmp")); 199using Bitmap source = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 203using Bitmap bitmap = new(1, 1); 217using Bitmap bitmap = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 227using Bitmap source = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 228using Bitmap bitmap = new(1, 1); 286using Bitmap bitmap = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 428using Bitmap source = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 429using Bitmap bitmap = new(Helpers.GetTestBitmapPath("almogaver1bit.bmp")); 651using Bitmap bitmap = new(1, 1); 662using 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)
122using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 141using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 168using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 184using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 204using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 214using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 225using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 234using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 244using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 254using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 265using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 301using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 319using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 337using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 353using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 370using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 397using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 408using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 421using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 433using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 446using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 462using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 478using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 495using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 513using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 530using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 546using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 562using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 579using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 597using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 635using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 657using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 675using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 692using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 708using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 724using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 735using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 746using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 758using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 771using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 797using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 812using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 824using 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 (150)
System\Drawing\Design\UITypeEditor.cs (1)
52[typeof(Bitmap)] = $"System.Drawing.Design.BitmapEditor, {AssemblyRef.SystemDrawingDesign}",
System\Resources\ResxFileRef.Converter.cs (1)
137if (toCreate == typeof(Bitmap) && fileName.EndsWith(".ico", StringComparison.Ordinal))
System\Windows\Forms\ActiveX\AxHost.cs (1)
1009public new void DrawToBitmap(Bitmap bitmap, Rectangle targetBounds)
System\Windows\Forms\BinaryFormat\WinFormsBinaryFormatWriter.cs (3)
19public static unsafe void WriteBitmap(Stream stream, Bitmap bitmap) 30new ClassInfo(1, typeof(Bitmap).FullName!, s_dataMemberName), 70else if (value is Bitmap bitmap)
System\Windows\Forms\ComponentModel\COM2Interop\COM2PictureConverter.cs (3)
20private Type _pictureType = typeof(Bitmap); 69_pictureType = typeof(Bitmap); 108else if (managedValue is Bitmap bitmap)
System\Windows\Forms\Control.cs (8)
4798/// should either be a base managed class (<see cref="string"/>, <see cref="Bitmap"/>, 4814/// Because <see cref="DoDragDrop(object, DragDropEffects, Bitmap, Point, bool)"/> always performs the 4815/// RGB multiplication step in calculating the alpha value, you should always pass a <see cref="Bitmap"/> 4816/// without pre-multiplied alpha blending. Note that no error will result from passing a <see cref="Bitmap"/> 4824Bitmap? dragImage, 4860public void DrawToBitmap(Bitmap bitmap, Rectangle targetBounds) 4878using Bitmap image = new(width, height, bitmap.PixelFormat); 6319public 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; 1350Bitmap 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) => 698using Bitmap bmFlipXPThemes = new(backgroundBounds.Height, backgroundBounds.Width); 758Bitmap? bmp = null; 1019Bitmap bmp, 1044using 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)
2654using 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) 2145/// either be a base managed class (<see cref="string"/>, <see cref="Bitmap"/>, or <see cref="Metafile"/>) 2161/// Because <see cref="DoDragDrop(object, DragDropEffects, Bitmap, Point, bool)"/> always performs the 2162/// RGB multiplication step in calculating the alpha value, you should always pass a <see cref="Bitmap"/> 2163/// without pre-multiplied alpha blending. Note that no error will result from passing a <see cref="Bitmap"/> 2168public unsafe DragDropEffects DoDragDrop(object data, DragDropEffects allowedEffects, Bitmap? dragImage, Point cursorOffset, bool useDefaultDragImage) 2227internal IDropSource.Interface CreateDropSource(IComDataObject 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)
833if (SystemInformation.HighContrast && image is Bitmap bitmap) 878using Bitmap textBmp = new(textSize.Width, textSize.Height, PixelFormat.Format32bppPArgb); 1026private static Bitmap CreateDisabledImage(Image normalImage, ImageAttributes? imgAttrib) 1036Bitmap 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)
24public GiveFeedbackEventArgs(DragDropEffects effect, bool useDefaultCursors, Bitmap? dragImage, Point cursorOffset, bool useDefaultDragImage) 51public Bitmap? DragImage { get; set; }
System\Windows\Forms\MDI\MDIControlStrip.cs (1)
78private Bitmap GetTargetWindowIcon()
System\Windows\Forms\Nrbf\WinFormsSerializationRecordExtensions.cs (2)
38/// Tries to get this object as a binary formatted <see cref="Bitmap"/>. 45|| !types.TypeNameMatches(typeof(Bitmap))
System\Windows\Forms\OLE\DataObject.BitmapBinder.cs (2)
45return typeof(Bitmap); 63if (!serializedType.Equals(typeof(string)) && !serializedType.Equals(typeof(Bitmap)))
System\Windows\Forms\OLE\DataObject.Composition.WinFormsToNativeAdapter.cs (2)
141if (format.Equals(DataFormats.Bitmap) && data is Bitmap bitmap) 152static HBITMAP GetCompatibleBitmap(Bitmap bitmap)
System\Windows\Forms\OLE\DataObject.DataStore.cs (1)
75if (data is Bitmap && format.Equals(DataFormats.Dib))
System\Windows\Forms\OLE\DragDropHelper.cs (1)
326public static void SetDragImage(IComDataObject dataObject, Bitmap? dragImage, Point cursorOffset, bool usingDefaultDragImage)
System\Windows\Forms\OLE\DropSource.cs (1)
20public DropSource(ISupportOleDropSource peer, IComDataObject dataObject, Bitmap? dragImage, Point cursorOffset, bool useDefaultDragImage)
System\Windows\Forms\Rendering\ControlPaint.cs (15)
19private static Bitmap? t_checkImage; // image used to render checkmarks 148public static unsafe IntPtr CreateHBitmap16Bit(Bitmap bitmap, Color background) 244public static unsafe IntPtr CreateHBitmapTransparencyMask(Bitmap bitmap) 303public static IntPtr CreateHBitmapColorMask(Bitmap bitmap, IntPtr monochromeMask) 1370Bitmap bitmap = new(rectangle.Width, rectangle.Height); 1441using Bitmap bitmap = new(width, height); 1537using Bitmap bitmap = new(width, height); 1636using Bitmap bitmap = new(image.Width, image.Height); 2096using Bitmap bitmap = new(patternSize, patternSize); 2147using Bitmap b = new(2, 2); 2226using Bitmap bitmap = new(patternSize, patternSize); 2408internal static void InvertForeColorIfNeeded(Bitmap bitmap, Color backgroundColor) 2429internal static Bitmap CreateBitmapWithInvertedForeColor(Bitmap bitmap, Color backgroundColor) 2431Bitmap result = new(bitmap.Width, bitmap.Height, bitmap.PixelFormat);
System.Windows.Forms.Design (58)
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"]; 594Bitmap? itemBitmap = attr.GetImage(type, false) as Bitmap; 767ValidatePropertyType(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"); 1907Bitmap images = new(typeof(DesignBindingPicker), "DataPickerImages.bmp"); 1949Bitmap 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)
123_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\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 (60)
EnsureEditorsTests.cs (1)
47[InlineData(typeof(Bitmap), typeof(BitmapEditor))]
System\ComponentModel\Design\ByteViewerTests.cs (4)
425using Bitmap image = new(10, 10); 466using Bitmap image = new(10, 10); 511using Bitmap image = new(10, 10); 541using Bitmap image = new(10, 10);
System\Drawing\Design\BitmapEditorTests.cs (5)
74using Bitmap image = new(10, 10); 77Bitmap result = Assert.IsType<Bitmap>(editor.LoadFromStream(stream)); 90Bitmap result = Assert.IsType<Bitmap>(editor.LoadFromStream(stream));
System\Drawing\Design\FontNameEditorTests.cs (1)
84using (Bitmap bitmap = new(1, 1))
System\Drawing\Design\ImageEditorTests.cs (6)
130using Bitmap image = new(10, 10); 133Bitmap result = Assert.IsType<Bitmap>(editor.LoadFromStream(stream)); 160using Bitmap image = new(10, 10); 161using Bitmap otherImage = new(3, 2); 185using Bitmap image = new(10, 10);
System\Drawing\Design\MetafileEditorTests.cs (1)
57using Bitmap image = new(10, 10);
System\Drawing\Design\ToolboxItemTests.cs (10)
106public void ToolboxItem_Bitmap_Set_GetReturnsExpected(Bitmap value) 317public void ToolboxItem_OriginalBitmap_Set_GetReturnsExpected(Bitmap value) 1337using Bitmap bitmap = new(10, 10); 1338using Bitmap originalBitmap = new(10, 10); 1383using Bitmap bitmap = new(10, 10); 1384using Bitmap originalBitmap = new(10, 10); 1412using Bitmap bitmap = new(10, 10); 1413using Bitmap originalBitmap = new(10, 10); 1537Bitmap bitmap = new(10, 10); 1541Bitmap originalBitmap = new(10, 10);
System\Resources\Tools\CodeDomCompileHelper.cs (1)
28MetadataReference.CreateFromFile(typeof(Bitmap).Assembly.Location),
System\Resources\Tools\StronglyTypedResourceBuilderTests.cs (10)
317using Bitmap expected = (Bitmap)Image.FromFile(@"Resources\Image1.png"); 318ValidateResultBitmap(imagePropertyInfo, expected, TypeDescriptor.GetConverter(typeof(Bitmap))); 324using Bitmap bitmap = new(10, 10); 373using Bitmap expected = (Bitmap)Image.FromFile(@"Resources\Image1.png"); 374ValidateResultBitmap(imagePropertyInfo, expected, TypeDescriptor.GetConverter(typeof(Bitmap))); 673private static void ValidateResultBitmap(PropertyInfo imagePropertyInfo, Bitmap expected, TypeConverter converter) 676using Bitmap resourceBitmap = Assert.IsType<Bitmap>(converter.ConvertFrom(resourceBytes));
System\Windows\Forms\Design\DataSourceDescriptorCollectionTests.cs (1)
109public override Bitmap Image => new(1, 1);
System\Windows\Forms\Design\DataSourceGroupCollectionTests.cs (1)
104public override Bitmap Image => new(1, 1);
System\Windows\Forms\Design\EmbeddedResourceTests.cs (1)
106using Bitmap bitmap = new(stream);
System\Windows\Forms\Design\ImageIndexEditorTests.cs (1)
35using Bitmap bitmap = new(10, 10);
System\Windows\Forms\Design\ImageListImageEditorTests.cs (3)
18using Bitmap image = new(10, 10); 23var resultImage = Assert.IsType<Bitmap>(result.Image);
System\Windows\Forms\Design\ImageListImageTests.cs (5)
15using Bitmap bitmap = new(10, 10); 25using Bitmap bitmap = new(10, 10); 36using Bitmap bitmap = new(10, 10); 49using Bitmap bitmap = new(10, 10); 61using Bitmap bitmap = new(10, 10);
System\Windows\Forms\Design\InheritanceUITests.cs (2)
95Bitmap glyph = InheritanceUI.InheritanceGlyph; 98glyph.Should().NotBeNull().And.BeOfType<Bitmap>();
System\Windows\Forms\Design\ItemTypeToolStripMenuItemTests.cs (1)
36_item.Image.Should().BeOfType<Bitmap>().Which.Should().Be(ToolStripDesignerUtils.GetToolboxBitmap(typeof(string)));
System\Windows\Forms\Design\VsPropertyGridTests.cs (6)
14using Bitmap sortPropertyImage = propertyGrid.GetSortByPropertyImage(); 16using Bitmap sortCategoryImage = propertyGrid.GetSortByCategoryImage(); 18using Bitmap showPageImage = propertyGrid.GetShowPropertyPageImage(); 24public Bitmap GetSortByPropertyImage() => SortByPropertyImage; 25public Bitmap GetSortByCategoryImage() => SortByCategoryImage; 26public 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)
36using Bitmap bitmap = icon.ToBitmap(); 52using Bitmap bitmap = icon.ToBitmap(); 72using Bitmap bitmap = icon.ToBitmap(); 83using Bitmap bitmap = new(100, 200);
Interop\Oleaut32\ITypeInfoTests.cs (16)
17using Bitmap image = new(16, 32); 31using Bitmap image = new(16, 32); 45using Bitmap image = new(16, 32); 61using Bitmap image = new(16, 32); 81using Bitmap image = new(16, 32); 101using Bitmap image = new(16, 32); 135using Bitmap image = new(16, 32); 159using Bitmap image = new(16, 32); 173using Bitmap image = new(16, 32); 187using Bitmap image = new(16, 32); 209using Bitmap image = new(16, 32); 226using Bitmap image = new(16, 32); 240using Bitmap image = new(16, 32); 279using Bitmap image = new(16, 32); 292using Bitmap image = new(16, 32); 321using 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 (893)
CheckedListBoxTests.cs (6)
419using Bitmap image = new(10, 10); 441using Bitmap image = new(10, 10); 462using Bitmap image = new(10, 10); 473using Bitmap image = new(10, 10); 486using Bitmap image = new(10, 10); 813using Bitmap image = new(10, 10);
System\Drawing\Design\PaintValueEventArgsTests.cs (1)
22using Bitmap image = new(10, 10);
System\Drawing\Design\PropertyValueUIItemTests.cs (1)
37using Bitmap uiItemImage = new(10, 10);
System\Drawing\Design\UITypeEditorTests.cs (4)
100Bitmap bitmap = new(10, 10); 110using Bitmap image = new(10, 10); 118Bitmap bitmap = new(10, 10); 132using (Bitmap image = new(10, 10))
System\Resources\ResxDataNodeTests.cs (6)
29using Bitmap bitmap = new(10, 10); 36Bitmap result = Assert.IsType<Bitmap>(converter.ConvertFrom(bitmapBytes!)); 43using Bitmap bitmap = new(10, 10); 51var result = Assert.IsType<Bitmap>(converter.ConvertFrom(bitmapBytes!));
System\Resources\ResXFileRef.ConverterTests.cs (4)
117var bitmapResult = (Bitmap)converter.ConvertFrom(null, null, bitmapIconRefString); 128var result = (Bitmap)converter.ConvertFrom(null, null, resxFileRefString);
System\Windows\Forms\AccessibleObjects\ToolStripDropDownButton.ToolStripDropDownButtonAccessibleObjectTests.cs (2)
101using Bitmap image = new(10, 10); 107static ToolStripDropDownButton CreateToolStripDropDownButton(string text = null, Bitmap image = null, EventHandler onClick = null, string name = null, ToolStripItem[] dropDownItems = null)
System\Windows\Forms\AxHostTests.cs (6)
1607Bitmap original = new(10, 11); 1623var result = Assert.IsType<Bitmap>(SubAxHost.GetPictureFromIPictureDisp(disp)); 1667Bitmap original = new(10, 11); 1688var result = Assert.IsType<Bitmap>(SubAxHost.GetPictureFromIPicture(iPicture));
System\Windows\Forms\BinaryFormat\WinFormsBinaryFormattedObjectTests.cs (17)
22using Bitmap bitmap = new(10, 10); 25root.TypeNameMatches(typeof(Bitmap)).Should().BeTrue(); 26root.TypeName.FullName.Should().Be(typeof(Bitmap).FullName); 31using Bitmap deserialized = result.Should().BeOfType<Bitmap>().Which; 38using Bitmap bitmap = new(10, 10); 46using Bitmap deserialized = result.Should().BeOfType<Bitmap>().Which; 53using Bitmap bitmap = new(10, 10); 66using 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. 74using Bitmap image = new(10, 10); 89Bitmap newImage = (Bitmap)newList.Images[0]; 97using Bitmap image = new(10, 10); 111Bitmap newImage = (Bitmap)newList.Images[0];
System\Windows\Forms\BinaryFormatUtilitiesTests.cs (6)
248using Bitmap image = new(10, 10); 263using Bitmap image = new(10, 10); 277using Bitmap value = new(10, 10); 278RoundTripObject(value).Should().BeOfType<Bitmap>().Subject.Size.Should().Be(value.Size); 284using Bitmap value = new(10, 10); 285RoundTripObject_RestrictedFormat(value).Should().BeOfType<Bitmap>().Subject.Size.Should().Be(value.Size);
System\Windows\Forms\ButtonBaseTests.cs (13)
1432using Bitmap value = new(10, 10); 1456using Bitmap value = new(10, 10); 1482using Bitmap value = new(10, 10); 1780using Bitmap image = new(10, 10); 1799using Bitmap image = new(10, 10); 1827using Bitmap image = new(10, 10); 2077using Bitmap image = new(10, 10); 2151using Bitmap image1 = new(10, 10); 2152using Bitmap image2 = new(10, 10); 2236using Bitmap image = new(10, 10); 2302using Bitmap image1 = new(10, 10); 2303using Bitmap image2 = new(10, 10); 2385using Bitmap image = new(10, 10);
System\Windows\Forms\ButtonTests.cs (2)
3423using Bitmap image = new(10, 10); 3496using Bitmap image = new(10, 10);
System\Windows\Forms\ClipboardTests.cs (4)
378using Bitmap bitmap = new(10, 10); 433using Bitmap bitmap = new(10, 10); 436Bitmap result = Assert.IsType<Bitmap>(Clipboard.GetImage());
System\Windows\Forms\ColumnHeaderTests.cs (8)
372using Bitmap image1 = new(10, 10); 373using Bitmap image2 = new(10, 10); 458using Bitmap image1 = new(10, 10); 459using Bitmap image2 = new(10, 10); 591using Bitmap image1 = new(10, 10); 592using Bitmap image2 = new(10, 10); 680using Bitmap image1 = new(10, 10); 681using Bitmap image2 = new(10, 10);
System\Windows\Forms\ComboBoxTests.cs (10)
385using Bitmap bitmap = new(100, 100); 528using Bitmap image1 = new(10, 10); 539using Bitmap image2 = new(10, 10); 723using Bitmap bitmap = new(1, 1); 746using Bitmap bitmap = new(1, 1); 766using Bitmap bitmap = new(1, 1); 1967using Bitmap image = new(10, 10); 2004using Bitmap image = new(10, 10); 2064using Bitmap image = new(10, 10); 2108using Bitmap image = new(10, 10);
System\Windows\Forms\ComponentModel\Com2Interop\COM2PictureConverterTests.cs (6)
94using Bitmap errorBitmap = errorIcon.ToBitmap(); 100using Bitmap bitmap = (Bitmap)Instance.ConvertNativeToManaged((VARIANT)unknown.Value, property: null); 104Assert.Equal(typeof(Bitmap), Instance.ManagedType); 107Assert.Same(bitmap, (Bitmap)Instance.ConvertNativeToManaged((VARIANT)unknown.Value, property: null)); 159using Bitmap bitmap = new(42, 70);
System\Windows\Forms\ComponentModel\Com2Interop\ComNativeDescriptorTests.cs (3)
22using Bitmap bitmap = new(10, 20); 32using Bitmap bitmap = new(10, 20); 81using Bitmap bitmap = new(10, 20);
System\Windows\Forms\ControlPaintTests.cs (93)
32public void ControlPaint_CreateHBitmap16Bit_Invoke_ReturnsExpected(Bitmap bitmap, Color background) 40using Bitmap result = Bitmap.FromHbitmap((IntPtr)hBitmap); 54using Bitmap bitmap = new(3, 1); 65using Bitmap result = Bitmap.FromHbitmap((IntPtr)hBitmap); 103public void ControlPaint_CreateHBitmapColorMask_Invoke_ReturnsExpected(Bitmap bitmap, IntPtr monochromeMask) 111using Bitmap result = Bitmap.FromHbitmap((IntPtr)hBitmap); 125using Bitmap mask = new(3, 1); 132using Bitmap bitmap = new(3, 1); 143using Bitmap result = Bitmap.FromHbitmap((IntPtr)hBitmap); 165using Bitmap bitmap = new(3, 1); 176using Bitmap result = Bitmap.FromHbitmap((IntPtr)hBitmap); 211public void ControlPaint_CreateHBitmapTransparencyMask_Invoke_ReturnsExpected(Bitmap bitmap) 219using Bitmap result = Bitmap.FromHbitmap((IntPtr)hBitmap); 233using Bitmap bitmap = new(3, 1); 244using Bitmap result = Bitmap.FromHbitmap((IntPtr)hBitmap); 274using Bitmap bitmap = new(1, 1); 277using Bitmap invertedBitmap = ControlPaint.CreateBitmapWithInvertedForeColor(bitmap, Color.LightGray); 561using Bitmap image = new(10, 10); 574using Bitmap image = new(10, 10); 620using Bitmap image = new(10, 10); 662using Bitmap image = new(10, 10); 700using Bitmap image = new(10, 10); 725using Bitmap image = new(10, 10); 753using Bitmap image = new(10, 10); 765using Bitmap image = new(10, 10); 777using Bitmap image = new(10, 10); 789using Bitmap image = new(10, 10); 825using Bitmap image = new(10, 10); 837using Bitmap image = new(10, 10); 863using Bitmap image = new(10, 10); 874using Bitmap image = new(10, 10); 885using Bitmap image = new(10, 10); 909using Bitmap image = new(10, 10); 921using Bitmap image = new(10, 10); 946using Bitmap image = new(10, 10); 957using Bitmap image = new(10, 10); 968using Bitmap image = new(10, 10); 989using Bitmap image = new(10, 10); 1001using Bitmap image = new(10, 10); 1027using Bitmap image = new(10, 10); 1038using Bitmap image = new(10, 10); 1049using Bitmap image = new(10, 10); 1070using Bitmap image = new(10, 10); 1082using Bitmap image = new(10, 10); 1107using Bitmap image = new(10, 10); 1118using Bitmap image = new(10, 10); 1129using Bitmap image = new(10, 10); 1149using Bitmap image = new(10, 10); 1177using Bitmap image = new(10, 10); 1208using Bitmap image = new(10, 10); 1243using Bitmap image = new(10, 10); 1280using Bitmap image = new(10, 10); 1301using Bitmap image = new(10, 10); 1329using Bitmap sourceImage = new(10, 10); 1340using Bitmap image = new(10, 10); 1347using Bitmap image = new(10, 10); 1369using Bitmap image = new(10, 10); 1400using Bitmap image = new(10, 10); 1432using Bitmap image = new(10, 10); 1444using Bitmap image = new(10, 10); 1456using Bitmap image = new(10, 10); 1486using Bitmap image = new(10, 10); 1498using Bitmap image = new(10, 10); 1510using Bitmap image = new(10, 10); 1531using Bitmap image = new(10, 10); 1543using Bitmap image = new(10, 10); 1568using Bitmap image = new(10, 10); 1579using Bitmap image = new(10, 10); 1590using Bitmap image = new(10, 10); 1611using Bitmap image = new(10, 10); 1623using Bitmap image = new(10, 10); 1648using Bitmap image = new(10, 10); 1659using Bitmap image = new(10, 10); 1670using Bitmap image = new(10, 10); 1749using Bitmap image = new(10, 10); 1761using Bitmap image = new(10, 10); 1786using Bitmap image = new(10, 10); 1797using Bitmap image = new(10, 10); 1808using Bitmap image = new(10, 10); 1834using Bitmap image = new(10, 10); 1869using Bitmap image = new(10, 10); 1881using Bitmap image = new(10, 10); 1917using Bitmap image = new(10, 10); 1929using Bitmap image = new(10, 10); 1965using Bitmap image = new(10, 10); 1994using Bitmap image = new(10, 10);
System\Windows\Forms\ControlTests.Handlers.cs (10)
3854using Bitmap image = new(10, 10); 3976using Bitmap image = new(10, 10); 4026using Bitmap image = new(10, 10); 4103using Bitmap image = new(10, 10); 4277Bitmap image = new(10, 10); 4636using Bitmap image = new(10, 10); 4655using Bitmap image = new(10, 10); 4694using Bitmap image = new(10, 10); 4723using Bitmap image = new(10, 10); 4759using Bitmap image = new(10, 10);
System\Windows\Forms\ControlTests.Methods.cs (12)
1880using Bitmap bitmap = new(20, 20); 1902using Bitmap bitmap = new(20, 20); 1931using Bitmap bitmap = new(10, 10); 1945using Bitmap bitmap = new(10, 10); 1959using Bitmap bitmap = new(10, 10); 4295using Bitmap image = new(10, 10); 4304using Bitmap image = new(10, 10); 4351using Bitmap image = new(10, 10); 12893using Bitmap image = new(10, 10); 12988using Bitmap image = new(10, 10); 13235using Bitmap image = new(10, 10); 13352using Bitmap image = new(10, 10);
System\Windows\Forms\ControlTests.Properties.cs (11)
1711using Bitmap image1 = new(10, 10); 1712using Bitmap image2 = new(10, 10); 1751Bitmap image1 = new(10, 10); 1762Bitmap image2 = new(10, 10); 1793Bitmap value = new(10, 10); 1840Bitmap image1 = new(10, 10); 1859Bitmap image2 = new(10, 10); 1893using Bitmap childBackgroundImage1 = new(10, 10); 1894using Bitmap childBackgroundImage2 = new(10, 10); 1933Bitmap image1 = new(10, 10); 1952Bitmap image2 = new(10, 10);
System\Windows\Forms\CursorTests.cs (6)
379using Bitmap image = new(10, 10); 389using Bitmap image = new(10, 10); 405using Bitmap image = new(10, 10); 416using Bitmap image = new(10, 10); 426using Bitmap image = new(10, 10); 442using Bitmap image = new(10, 10);
System\Windows\Forms\DataGridViewCellPaintingEventArgsTests.cs (16)
21using Bitmap image = new(10, 10); 44using Bitmap image = new(10, 10); 59using Bitmap image = new(10, 10); 69using Bitmap image = new(10, 10); 80using Bitmap image = new(10, 10); 91using Bitmap image = new(10, 10); 104using Bitmap image = new(10, 10); 117using Bitmap image = new(10, 10); 130using Bitmap image = new(10, 10); 141using Bitmap image = new(10, 10); 154using Bitmap image = new(10, 10); 167using Bitmap image = new(10, 10); 180using Bitmap image = new(10, 10); 191using Bitmap image = new(10, 10); 204using Bitmap image = new(10, 10); 217using Bitmap image = new(10, 10);
System\Windows\Forms\DataGridViewCellTests.cs (26)
3677using Bitmap image = new(10, 10); 3829using Bitmap image = new(10, 10); 5252using Bitmap image = new(10, 10); 5267using Bitmap image = new(10, 10); 5289using Bitmap image = new(10, 10); 5302using Bitmap image = new(10, 10); 5314using Bitmap image = new(10, 10); 5326using Bitmap image = new(10, 10); 5340using Bitmap image = new(10, 10); 5354using Bitmap image = new(10, 10); 5364using Bitmap image = new(10, 10); 5373using Bitmap image = new(10, 10); 5382using Bitmap image = new(10, 10); 5396using Bitmap image = new(10, 10); 5410using Bitmap image = new(10, 10); 5419using Bitmap image = new(10, 10); 5428using Bitmap image = new(10, 10); 5442using Bitmap image = new(10, 10); 5456using Bitmap image = new(10, 10); 5466using Bitmap image = new(10, 10); 5475using Bitmap image = new(10, 10); 6018using Bitmap image = new(10, 10); 6026using Bitmap image = new(10, 10); 6042using Bitmap image = new(10, 10); 6052using Bitmap image = new(10, 10); 6062using Bitmap image = new(10, 10);
System\Windows\Forms\DataGridViewHeaderCellTests.cs (1)
4621using Bitmap image = new(10, 10);
System\Windows\Forms\DataGridViewRowPostPaintEventArgsTests.cs (15)
21using Bitmap image = new(10, 10); 40using Bitmap image = new(10, 10); 55using Bitmap image = new(10, 10); 72using Bitmap image = new(10, 10); 85using Bitmap image = new(10, 10); 98using Bitmap image = new(10, 10); 109using Bitmap image = new(10, 10); 122using Bitmap image = new(10, 10); 133using Bitmap image = new(10, 10); 146using Bitmap image = new(10, 10); 157using Bitmap image = new(10, 10); 170using Bitmap image = new(10, 10); 181using Bitmap image = new(10, 10); 194using Bitmap image = new(10, 10); 207using Bitmap image = new(10, 10);
System\Windows\Forms\DataGridViewRowPrePaintEventArgsTests.cs (17)
12Bitmap image = new(10, 10); 41using Bitmap image = new(10, 10); 56using Bitmap image = new(10, 10); 73using Bitmap image = new(10, 10); 88using Bitmap image = new(10, 10); 102using Bitmap image = new(10, 10); 112using Bitmap image = new(10, 10); 125using Bitmap image = new(10, 10); 136using Bitmap image = new(10, 10); 149using Bitmap image = new(10, 10); 160using Bitmap image = new(10, 10); 173using Bitmap image = new(10, 10); 184using Bitmap image = new(10, 10); 197using Bitmap image = new(10, 10); 208using Bitmap image = new(10, 10); 221using Bitmap image = new(10, 10); 234using Bitmap image = new(10, 10);
System\Windows\Forms\DataGridViewRowTests.cs (38)
4196using Bitmap image = new(10, 10); 4212using Bitmap image = new(10, 10); 4235using Bitmap image = new(10, 10); 4592using Bitmap image = new(10, 10); 4616using Bitmap image = new(10, 10); 4642using Bitmap image = new(10, 10); 4666using Bitmap image = new(10, 10); 4690using Bitmap image = new(10, 10); 4714using Bitmap image = new(10, 10); 4738using Bitmap image = new(10, 10); 4763using Bitmap image = new(10, 10); 4788using Bitmap image = new(10, 10); 4796using Bitmap image = new(10, 10); 4873using Bitmap image = new(10, 10); 4999using Bitmap image = new(10, 10); 5038using Bitmap image = new(10, 10); 5062using Bitmap image = new(10, 10); 5088using Bitmap image = new(10, 10); 5112using Bitmap image = new(10, 10); 5136using Bitmap image = new(10, 10); 5160using Bitmap image = new(10, 10); 5184using Bitmap image = new(10, 10); 5209using Bitmap image = new(10, 10); 5234using Bitmap image = new(10, 10); 5308using Bitmap image = new(10, 10); 5327using Bitmap image = new(10, 10); 5358using Bitmap image = new(10, 10); 5382using Bitmap image = new(10, 10); 5408using Bitmap image = new(10, 10); 5432using Bitmap image = new(10, 10); 5456using Bitmap image = new(10, 10); 5480using Bitmap image = new(10, 10); 5504using Bitmap image = new(10, 10); 5529using Bitmap image = new(10, 10); 5554using Bitmap image = new(10, 10); 5631using Bitmap image = new(10, 10); 5647using Bitmap image = new(10, 10); 5665using Bitmap image = new(10, 10);
System\Windows\Forms\DataGridViewTests.cs (2)
3486using Bitmap bitMap1 = new(10, 10); 3487using Bitmap bitMap2 = new(20, 20);
System\Windows\Forms\DataObject_BitmapBinderTests.cs (3)
62if (value is not Bitmap bitmap) 68Bitmap deserializedBitmap = deserialized.Should().BeOfType<Bitmap>().Which;
System\Windows\Forms\DataObjectTests.ClipboardTests.cs (8)
83if (string.IsNullOrWhiteSpace(format) || format == typeof(Bitmap).FullName || format.StartsWith("FileName", StringComparison.Ordinal)) 92theoryData.Add(typeof(Bitmap).FullName!, null, false, true); 93theoryData.Add(typeof(Bitmap).FullName!, "input", false, true); 136if (string.IsNullOrWhiteSpace(format) || format == typeof(Bitmap).FullName || format.StartsWith("FileName", StringComparison.Ordinal)) 148theoryData.Add(typeof(Bitmap).FullName!, false, null, false, false); 149theoryData.Add(typeof(Bitmap).FullName!, false, "input", false, false); 150theoryData.Add(typeof(Bitmap).FullName!, true, null, false, true); 151theoryData.Add(typeof(Bitmap).FullName!, true, "input", false, true);
System\Windows\Forms\DataObjectTests.cs (27)
547using Bitmap bitmap1 = new(10, 10); 551using Bitmap bitmap2 = new(10, 10); 621using Bitmap bitmap1 = new(10, 10); 626using Bitmap bitmap2 = new(10, 10); 669Bitmap image = new(10, 10); 934{ new Bitmap(10, 10), typeof(Bitmap).FullName }, 1046using Bitmap image = new(10, 10); 1053dataObject.GetData(typeof(Bitmap).FullName, autoConvert: true).Should().BeSameAs(image); 1054dataObject.GetData(typeof(Bitmap).FullName, autoConvert: false).Should().BeNull(); 1061dataObject.GetDataPresent(typeof(Bitmap).FullName, autoConvert: true).Should().BeTrue(); 1062dataObject.GetDataPresent(typeof(Bitmap).FullName, autoConvert: false).Should().BeFalse(); 1126using Bitmap image = new(10, 10); 1133dataObject.GetData(typeof(Bitmap).FullName, autoConvert: true).Should().BeSameAs(image); 1134dataObject.GetData(typeof(Bitmap).FullName, autoConvert: false).Should().BeNull(); 1141dataObject.GetDataPresent(typeof(Bitmap).FullName, autoConvert: true).Should().BeTrue(); 1142dataObject.GetDataPresent(typeof(Bitmap).FullName, autoConvert: false).Should().BeFalse(); 1307using Bitmap image = new(10, 10); 1314dataObject.GetData(typeof(Bitmap).FullName, autoConvert: true).Should().BeSameAs(image); 1315dataObject.GetData(typeof(Bitmap).FullName, autoConvert: false).Should().BeNull(); 1322dataObject.GetDataPresent(typeof(Bitmap).FullName, autoConvert: true).Should().BeTrue(); 1323dataObject.GetDataPresent(typeof(Bitmap).FullName, autoConvert: false).Should().BeFalse(); 1331using Bitmap image = new(10, 10); 1347using Bitmap image = new(10, 10); 2493using Bitmap bitmap = new(10, 10); 2500data.GetDataPresent(typeof(Bitmap)).Should().BeTrue(); 2503data.GetFormats().Should().BeEquivalentTo([typeof(Bitmap).FullName, nameof(Bitmap), customFormat]);
System\Windows\Forms\DateTimePickerTests.cs (4)
544using (Bitmap bmp = new(1, 1)) 552using (Bitmap bmp = new(1, 1)) 718using (Bitmap bmp = new(10, 10)) 726using (Bitmap bmp = new(20, 20))
System\Windows\Forms\Design\PropertyTabTests.cs (3)
27Bitmap bitmap = tab.Bitmap; 52Bitmap bitmap = tab.Bitmap; 94Bitmap bitmap = tab.Bitmap;
System\Windows\Forms\DragDropHelperTests.cs (3)
106public unsafe void SetDragImage_DataObject_Bitmap_Point_bool_ReturnsExpected(DataObject dataObject, Bitmap dragImage, Point cursorOffset, bool useDefaultDragImage) 156using Bitmap bitmap = new(1, 1); 164using Bitmap bitmap = new(1, 1);
System\Windows\Forms\DrawItemEventArgsTests.cs (4)
24using Bitmap image = new(10, 10); 49using Bitmap image = new(10, 10); 89using Bitmap image = new(10, 10); 99using Bitmap image = new(10, 10);
System\Windows\Forms\DrawListViewColumnHeaderEventArgsTests.cs (6)
23using Bitmap image = new(10, 10); 47using Bitmap image = new(10, 10); 75using Bitmap image = new(10, 10); 87using Bitmap image = new(10, 10); 97using Bitmap image = new(10, 10); 113using Bitmap image = new(10, 10);
System\Windows\Forms\DrawListViewItemEventArgsTests.cs (7)
23using Bitmap image = new(10, 10); 44using Bitmap image = new(10, 10); 53using Bitmap image = new(10, 10); 112using Bitmap image = new(10, 10); 122using Bitmap image = new(10, 10); 132using Bitmap image = new(10, 10); 142using Bitmap image = new(10, 10);
System\Windows\Forms\DrawListViewSubItemEventArgsTests.cs (6)
24using Bitmap image = new(10, 10); 47using Bitmap image = new(10, 10); 57using Bitmap image = new(10, 10); 66using Bitmap image = new(10, 10); 116using Bitmap image = new(10, 10); 126using Bitmap image = new(10, 10);
System\Windows\Forms\DrawToolTipEventArgsTests.cs (5)
22using Bitmap image = new(10, 10); 47using Bitmap image = new(10, 10); 57using Bitmap image = new(10, 10); 67using Bitmap image = new(10, 10); 77using Bitmap image = new(10, 10);
System\Windows\Forms\DrawTreeNodeEventArgsTests.cs (2)
22using Bitmap image = new(10, 10); 36using Bitmap image = new(10, 10);
System\Windows\Forms\GiveFeedbackEventArgsTests.cs (1)
40public void DragImage_Set_GetReturnsExpected(Bitmap value)
System\Windows\Forms\GroupBoxTests.cs (6)
1849using Bitmap image = new(10, 10); 1887using Bitmap image = new(10, 10); 2087using Bitmap image = new(10, 10); 2125using Bitmap image = new(10, 10); 2188using Bitmap image = new(10, 10); 2233using Bitmap image = new(10, 10);
System\Windows\Forms\ImageList.ImageCollectionTests.cs (139)
50using Bitmap image1bppIndexed = new(1, 2, PixelFormat.Format24bppRgb); 51using Bitmap image24bppRGb = new(3, 4, PixelFormat.Format24bppRgb); 52using Bitmap image32bppRGb = new(5, 6, PixelFormat.Format32bppRgb); 53using Bitmap image32bppArgbNotTransparent = new(7, 8, PixelFormat.Format32bppArgb); 54using Bitmap image32bppArgbTransparent = new(9, 10, PixelFormat.Format32bppArgb); 64Bitmap bitmap1 = Assert.IsType<Bitmap>(collection[0]); 69Bitmap bitmap2 = Assert.IsType<Bitmap>(collection[1]); 74Bitmap bitmap3 = Assert.IsType<Bitmap>(collection[2]); 79Bitmap bitmap4 = Assert.IsType<Bitmap>(collection[3]); 84Bitmap bitmap5 = Assert.IsType<Bitmap>(collection[4]); 98using Bitmap image1bppIndexed = new(1, 2, PixelFormat.Format24bppRgb); 99using Bitmap image24bppRGb = new(3, 4, PixelFormat.Format24bppRgb); 100using Bitmap image32bppRGb = new(5, 6, PixelFormat.Format32bppRgb); 101using Bitmap image32bppArgbNotTransparent = new(7, 8, PixelFormat.Format32bppArgb); 102using Bitmap image32bppArgbTransparent = new(9, 10, PixelFormat.Format32bppArgb); 112Bitmap bitmap1 = Assert.IsType<Bitmap>(collection[0]); 117Bitmap bitmap2 = Assert.IsType<Bitmap>(collection[1]); 122Bitmap bitmap3 = Assert.IsType<Bitmap>(collection[2]); 127Bitmap bitmap4 = Assert.IsType<Bitmap>(collection[3]); 132Bitmap bitmap5 = Assert.IsType<Bitmap>(collection[4]); 186using Bitmap imageFiller1 = new(16, 16, pixelFormat); 187using Bitmap imageFiller2 = new(16, 16, pixelFormat); 189using Bitmap image = new(16, 16, pixelFormat); 207Bitmap resultImage = Assert.IsType<Bitmap>(collection[1]); 231using Bitmap image = new(10, 10); 247Bitmap bitmap = new(16, 16); 259using Bitmap image = new(10, 10); 270Bitmap bitmap = Assert.IsType<Bitmap>(collection[0]); 280using Bitmap image = new(10, 10); 292Bitmap bitmap = Assert.IsType<Bitmap>(collection[0]); 313using Bitmap image = new(10, 10); 323using Bitmap image = new(10, 10); 334using Bitmap image = new(10, 10); 350using Bitmap image1 = new(1, 2); 352using Bitmap image2 = new(3, 4); 358Bitmap result1 = Assert.IsType<Bitmap>(collection[key]); 361Assert.Equal(((Bitmap)collection[expectedIndex]).GetPixel(0, 0), result1.GetPixel(0, 0)); 364Bitmap result2 = Assert.IsType<Bitmap>(collection[key]); 382using Bitmap image1 = new(1, 2); 383using Bitmap image2 = new(3, 4); 427Bitmap bitmap = new(16, 16); 584Bitmap bitmap = new(16, 16); 895Bitmap bitmap = new(16, 16); 952using Bitmap image = new(width, 16); 964using Bitmap image = new(16, width); 992using Bitmap image = new(10, 10); 1035using Bitmap image = new(10, 10); 1083using Bitmap image1 = new(1, 2); 1084using Bitmap image2 = new(3, 4); 1085using Bitmap image3 = new(5, 6); 1155using Bitmap image1 = new(1, 2); 1157using Bitmap image2 = new(3, 4); 1170Bitmap result1 = Assert.IsType<Bitmap>(enumerator.Current); 1173Assert.Equal(((Bitmap)collection[0]).GetPixel(0, 0), result1.GetPixel(0, 0)); 1176Bitmap result2 = Assert.IsType<Bitmap>(enumerator.Current); 1179Assert.Equal(((Bitmap)collection[1]).GetPixel(0, 0), result2.GetPixel(0, 0)); 1192using Bitmap image1 = new(1, 2); 1194using Bitmap image2 = new(3, 4); 1208Bitmap result1 = Assert.IsType<Bitmap>(enumerator.Current); 1211Assert.Equal(((Bitmap)collection[0]).GetPixel(0, 0), result1.GetPixel(0, 0)); 1214Bitmap result2 = Assert.IsType<Bitmap>(enumerator.Current); 1217Assert.Equal(((Bitmap)collection[1]).GetPixel(0, 0), result2.GetPixel(0, 0)); 1239using Bitmap image1 = new(1, 2); 1240using Bitmap image2 = new(3, 4); 1241using Bitmap image3 = new(5, 6); 1304using Bitmap image1 = new(1, 2); 1306using Bitmap image2 = new(3, 4); 1308using Bitmap image3 = new(3, 4); 1338using Bitmap image1 = new(1, 2); 1340using Bitmap image2 = new(3, 4); 1342using Bitmap image3 = new(3, 4); 1348Color color1 = ((Bitmap)collection[0]).GetPixel(0, 0); 1349Color color2 = ((Bitmap)collection[1]).GetPixel(0, 0); 1350Color color3 = ((Bitmap)collection[2]).GetPixel(0, 0); 1358Assert.Equal(color1, ((Bitmap)collection[0]).GetPixel(0, 0)); 1359Assert.Equal(color3, ((Bitmap)collection[1]).GetPixel(0, 0)); 1366Assert.Equal(color3, ((Bitmap)collection[0]).GetPixel(0, 0)); 1391using Bitmap image = new(10, 10); 1402using Bitmap image1 = new(1, 2); 1404using Bitmap image2 = new(3, 4); 1406using Bitmap image3 = new(3, 4); 1442using Bitmap image1 = new(1, 2); 1444using Bitmap image2 = new(3, 4); 1446using Bitmap image3 = new(3, 4); 1452Color color1 = ((Bitmap)collection[0]).GetPixel(0, 0); 1453Color color2 = ((Bitmap)collection[1]).GetPixel(0, 0); 1454Color color3 = ((Bitmap)collection[2]).GetPixel(0, 0); 1462Assert.Equal(color1, ((Bitmap)collection[0]).GetPixel(0, 0)); 1463Assert.Equal(color3, ((Bitmap)collection[1]).GetPixel(0, 0)); 1470Assert.Equal(color1, ((Bitmap)collection[0]).GetPixel(0, 0)); 1471Assert.Equal(color3, ((Bitmap)collection[1]).GetPixel(0, 0)); 1478Assert.Equal(color3, ((Bitmap)collection[0]).GetPixel(0, 0)); 1494using Bitmap image1 = new(1, 2); 1496using Bitmap image2 = new(3, 4); 1498using Bitmap image3 = new(3, 4); 1504Color color1 = ((Bitmap)collection[0]).GetPixel(0, 0); 1505Color color2 = ((Bitmap)collection[1]).GetPixel(0, 0); 1506Color color3 = ((Bitmap)collection[2]).GetPixel(0, 0); 1513Assert.Equal(color1, ((Bitmap)collection[0]).GetPixel(0, 0)); 1514Assert.Equal(color2, ((Bitmap)collection[1]).GetPixel(0, 0)); 1515Assert.Equal(color3, ((Bitmap)collection[2]).GetPixel(0, 0)); 1522Assert.Equal(color1, ((Bitmap)collection[0]).GetPixel(0, 0)); 1523Assert.Equal(color2, ((Bitmap)collection[1]).GetPixel(0, 0)); 1524Assert.Equal(color3, ((Bitmap)collection[2]).GetPixel(0, 0)); 1543using Bitmap image1 = new(1, 2); 1544using Bitmap image2 = new(3, 4); 1564using Bitmap image1 = new(1, 2); 1565using Bitmap image2 = new(3, 4); 1597using Bitmap image = new(10, 10); 1632using Bitmap image = new(10, 10); 1643Bitmap bitmap = Assert.IsType<Bitmap>(collection[0]); 1653using Bitmap image = new(10, 10); 1665Bitmap bitmap = Assert.IsType<Bitmap>(collection[0]); 1679using Bitmap value = new(1, 2); 1688using Bitmap image = new(10, 10); 1693using Bitmap value = new(1, 2); 1707using Bitmap image = new(10, 10); 1718using Bitmap image = new(10, 10);
System\Windows\Forms\ImageListTests.cs (26)
461using Bitmap image = new(10, 10); 498Bitmap image = new(10, 10); 525Bitmap image = new(10, 10); 550Bitmap image = new(10, 10); 575Bitmap image = new(10, 10); 599Bitmap image = new(10, 10); 831using Bitmap bitmap = new(10, 10); 852using Bitmap bitmap1 = new(10, 10); 853using Bitmap bitmap2 = new(10, 10); 887using Bitmap bitmap = new(10, 10); 927using Bitmap image = new(10, 10); 930using Bitmap sourceImage = new(10, 10); 941using Bitmap image = new(10, 10); 945using Bitmap sourceImage = new(10, 10); 956using Bitmap image = new(10, 10); 959using Bitmap sourceImage = new(10, 10); 970using Bitmap image = new(10, 10); 974using Bitmap sourceImage = new(10, 10); 994using Bitmap image = new(10, 10); 997using Bitmap sourceImage = new(10, 10); 1008using Bitmap image = new(10, 10); 1012using Bitmap sourceImage = new(10, 10); 1022using Bitmap image = new(10, 10); 1037using Bitmap sourceImage = new(10, 10); 1050using Bitmap image = new(10, 10); 1053using Bitmap sourceImage = new(10, 10);
System\Windows\Forms\LabelTests.cs (9)
504using Bitmap image1 = new(10, 10); 513using Bitmap image2 = new(50, 10); 542using Bitmap image = new(10, 10); 614using Bitmap bitmap1 = new(10, 10); 615using Bitmap bitmap2 = new(10, 10); 648using Bitmap bitmap1 = new(10, 10); 649using Bitmap bitmap2 = new(10, 10); 682using Bitmap image = new(10, 10); 708using Bitmap bitmap = new(10, 10);
System\Windows\Forms\ListBoxTests.cs (4)
503using Bitmap image1 = new(10, 10); 514using Bitmap image2 = new(10, 10); 5518Bitmap bitmap = new(10, 10); 5639using Bitmap bitmap = new(10, 10);
System\Windows\Forms\MdiClientTests.cs (4)
178using Bitmap image = new(10, 10); 225using Bitmap image1 = new(10, 10); 236using Bitmap image2 = new(10, 10); 257using Bitmap image = new(10, 10);
System\Windows\Forms\MeasureItemEventArgsTests.cs (4)
13Bitmap image = new(10, 10); 34Bitmap image = new(10, 10); 59using Bitmap image = new(10, 10); 74using Bitmap image = new(10, 10);
System\Windows\Forms\MonthCalendarTests.cs (2)
403using Bitmap image1 = new(10, 10); 414using Bitmap image2 = new(10, 10);
System\Windows\Forms\PaintEventArgsTests.cs (3)
22using Bitmap image = new(10, 10); 39using Bitmap image = new(10, 10); 51using Bitmap image = new(10, 10);
System\Windows\Forms\PictureBoxTests.cs (9)
386using Bitmap image = new(10, 10); 403using Bitmap image = new(10, 10); 596using Bitmap image = new(10, 10); 613using Bitmap image = new(10, 10); 650using Bitmap image = new(10, 10); 1083using Bitmap image = new(10, 10); 1100using Bitmap image = new(10, 10); 1926using Bitmap image = new(10, 10); 2496using Bitmap image = new(10, 10);
System\Windows\Forms\ProgressBarRendererTest.cs (2)
66using Bitmap bitmap1 = new(100, 100); 67using Bitmap bitmap2 = new(100, 100);
System\Windows\Forms\ProgressBarTests.cs (2)
247Bitmap image1 = new(10, 10); 258Bitmap image2 = new(10, 10);
System\Windows\Forms\PropertyGrid.PropertyTabCollectionTests.cs (2)
65private Bitmap _bitmap; 73public override Bitmap Bitmap
System\Windows\Forms\PropertyGridTests.cs (3)
440using Bitmap image1 = new(10, 10); 451using Bitmap image2 = new(10, 10); 2378public override Bitmap Bitmap => new(10, 10);
System\Windows\Forms\RichTextBoxTests.ClipboardTests.cs (1)
21using Bitmap bitmap = new(100, 100);
System\Windows\Forms\RichTextBoxTests.cs (3)
768using Bitmap image1 = new(10, 10); 779using Bitmap image2 = new(10, 10); 10661using Bitmap bitmap1 = new(10, 10);
System\Windows\Forms\ScrollableControlTests.cs (4)
1530using Bitmap image = new(10, 10); 1677using Bitmap image = new(10, 10); 1729using Bitmap image = new(10, 10); 1817using Bitmap image = new(10, 10);
System\Windows\Forms\ScrollBarTests.cs (2)
275using Bitmap image1 = new(10, 10); 286using Bitmap image2 = new(10, 10);
System\Windows\Forms\SplitterTests.cs (2)
229using Bitmap image1 = new(10, 10); 240using Bitmap image2 = new(10, 10);
System\Windows\Forms\StatusStripTests.cs (1)
1210using Bitmap image = new(10, 10);
System\Windows\Forms\TabControlTests.cs (6)
647using Bitmap image1 = new(10, 10); 658using Bitmap image2 = new(10, 10); 1265using Bitmap image1 = new(10, 10); 1266using Bitmap image2 = new(10, 10); 1267using Bitmap image3 = new(10, 10); 4220Bitmap bitmap = new(10, 10);
System\Windows\Forms\TableLayoutCellPaintEventArgsTests.cs (1)
23using Bitmap image = new(10, 10);
System\Windows\Forms\TableLayoutPanelTests.cs (3)
1208Bitmap image = new(10, 10); 1429using Bitmap image = new(10, 10); 1469using Bitmap image = new(10, 10);
System\Windows\Forms\TabPageTests.cs (4)
3976using Bitmap image = new(10, 10); 4046using Bitmap image = new(10, 10); 4102using Bitmap image = new(10, 10); 4185using Bitmap image = new(10, 10);
System\Windows\Forms\TextRendererTests.cs (16)
35using Bitmap image = new(10, 10); 69using Bitmap image = new(10, 10); 106using Bitmap image = new(10, 10); 147using Bitmap image = new(10, 10); 179using Bitmap image = new(10, 10); 215using Bitmap image = new(10, 10); 255using Bitmap image = new(10, 10); 299using Bitmap image = new(10, 10); 311using Bitmap image = new(10, 10); 472using Bitmap image = new(10, 10); 487using Bitmap image = new(10, 10); 502using Bitmap image = new(10, 10); 517using Bitmap image = new(10, 10); 536using Bitmap image = new(10, 10); 725using Bitmap image = new(200, 50); 802using Bitmap image = new(200, 50);
System\Windows\Forms\ToolStripArrowRenderEventArgsTests.cs (4)
19Bitmap image = new(10, 10); 49using Bitmap image = new(10, 10); 69using Bitmap image = new(10, 10); 84using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripButtonTests.cs (3)
1264using Bitmap image = new(10, 10); 1355using Bitmap image = new(10, 10); 1448Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripComboBox.ToolStripComboBoxControl.ToolStripComboBoxFlatComboAdapterTests.cs (1)
77using Bitmap bitmap = new(100, 100);
System\Windows\Forms\ToolStripComboBoxTests.cs (1)
144using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripContentPanelRenderEventArgsTests.cs (3)
12Bitmap image = new(10, 10); 30using Bitmap image = new(10, 10); 44using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripContentPanelTests.cs (1)
1853using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripControlHostTests.cs (3)
431using Bitmap value = new(10, 10); 558using Bitmap backgroundImage = new(10, 10); 4108using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripDropDownTests.cs (2)
823using Bitmap image1 = new(10, 10); 834using Bitmap image2 = new(10, 10);
System\Windows\Forms\ToolStripGripRenderEventArgsTests.cs (2)
12Bitmap image = new(10, 10); 29Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripItemCollectionTests.cs (2)
339using Bitmap image = new(10, 10); 353using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripItemImageRenderEventArgsTests.cs (3)
12Bitmap image = new(10, 10); 29Bitmap image = new(10, 10); 74using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripItemRenderEventArgsTests.cs (2)
12Bitmap image = new(10, 10); 29Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripItemTests.cs (31)
3693using Bitmap image = new(10, 10); 3714using Bitmap image = new(10, 10); 3761using Bitmap image = new(10, 10); 3844using Bitmap oldValue = new(10, 10); 3865using Bitmap oldValue = new(10, 10); 4087using Bitmap image = new(10, 10); 4101using Bitmap image = new(10, 10); 4115using Bitmap otherImage = new(10, 10); 4132using Bitmap image = new(10, 10); 4146using Bitmap image = new(10, 10); 4160using Bitmap otherImage = new(10, 10); 4406using Bitmap image = new(10, 10); 4498using Bitmap image = new(10, 10); 4641using Bitmap image = new(10, 10); 4758using Bitmap image = new(10, 10); 4783using Bitmap image = new(10, 10); 4837using Bitmap image = new(10, 10); 4861using Bitmap image = new(10, 10); 4914using Bitmap image = new(10, 10); 5000using Bitmap image = new(10, 10); 5137using Bitmap image = new(10, 10); 5251using Bitmap image = new(10, 10); 5282using Bitmap image = new(10, 10); 5343using Bitmap image = new(10, 10); 5374using Bitmap image = new(10, 10); 9874using Bitmap image = new(10, 10); 9910using Bitmap image = new(10, 10); 9952using Bitmap image = new(10, 10); 10025using Bitmap image = new(10, 10); 10063using Bitmap image = new(10, 10); 10107using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripItemTextRenderEventArgsTests.cs (4)
21using Bitmap image = new(10, 10); 47using Bitmap image = new(10, 10); 64using Bitmap image = new(10, 10); 80using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripLabelTests.cs (4)
40using Bitmap image = new(10, 10); 52using Bitmap image = new(10, 10); 65using Bitmap image = new(10, 10); 79using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripMenuItemTests.cs (5)
119using Bitmap bitmap = menuItem.TestAccessor().Dynamic.GetNativeMenuItemImage(); 191using Bitmap image = new(10, 10); 206using Bitmap image = new(10, 10); 224using Bitmap image = new(10, 10); 242using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripPanelRenderEventArgsTests.cs (3)
12Bitmap image = new(10, 10); 30using Bitmap image = new(10, 10); 44using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripRendererTests.cs (15)
14using Bitmap image = new(10, 11); 15Image result = Assert.IsType<Bitmap>(ToolStripRenderer.CreateDisabledImage(image)); 44using Bitmap image = new(10, 10); 79Bitmap image = new(10, 10); 136Bitmap image = new(10, 10); 191Bitmap image = new(10, 10); 312using Bitmap image = new(10, 10); 419Bitmap image = new(10, 10); 485using Bitmap image = new(10, 10); 520Bitmap image = new(10, 10); 602Bitmap image = new(10, 10); 659Bitmap image = new(10, 10); 724using Bitmap image = new(10, 10); 841using Bitmap image = new(10, 10); 918using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripRenderEventArgsTests.cs (4)
12Bitmap image = new(10, 10); 39using Bitmap image = new(10, 10); 63using Bitmap image = new(10, 10); 92using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripSeparatorRenderEventArgsTests.cs (2)
12Bitmap image = new(10, 10); 29Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripSeparatorTests.cs (3)
1117Bitmap image = new(10, 10); 1211using Bitmap image = new(10, 10); 1282using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripSplitButtonTests.cs (5)
99using Bitmap image = new(10, 10); 110using Bitmap image = new(10, 10); 124using Bitmap image = new(10, 10); 141using Bitmap image = new(10, 10); 156using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripStatusLabelTests.cs (4)
36using Bitmap sampleImage = new(10, 10); 46using Bitmap sampleImage = new(10, 10); 56using Bitmap sampleImage = new(10, 10); 74using Bitmap image = new(10, 10);
System\Windows\Forms\ToolStripTests.cs (7)
5871using Bitmap image = new(10, 10); 6018using Bitmap image = new(10, 10); 6069using Bitmap image = new(10, 10); 6156using Bitmap image = new(10, 10); 6231using Bitmap image = new(10, 10); 6260using Bitmap image = new(10, 10); 7265using Bitmap bitmap = ScaleHelper.GetIconResourceAsBestMatchBitmap(
System\Windows\Forms\TrackBarRendererTests.cs (1)
13private readonly Bitmap _bitmap;
System\Windows\Forms\TreeNodeTests.cs (51)
1000using Bitmap image = new(10, 10); 1039using Bitmap image = new(10, 10); 1073using Bitmap image = new(10, 10); 1104using Bitmap image = new(10, 10); 1119using Bitmap image1 = new(10, 10); 1120using Bitmap image2 = new(10, 10); 1186using Bitmap image = new(10, 10); 1253using Bitmap image1 = new(10, 10); 1254using Bitmap image2 = new(10, 10); 1410using Bitmap image1 = new(10, 10); 1411using Bitmap image2 = new(10, 10); 1500using Bitmap image1 = new(10, 10); 1501using Bitmap image2 = new(10, 10); 1530using Bitmap image1 = new(10, 10); 1531using Bitmap image2 = new(10, 10); 2982using Bitmap image = new(10, 10); 3021using Bitmap image = new(10, 10); 3055using Bitmap image = new(10, 10); 3086using Bitmap image = new(10, 10); 3101using Bitmap image1 = new(10, 10); 3102using Bitmap image2 = new(10, 10); 3168using Bitmap image = new(10, 10); 3208using Bitmap image1 = new(10, 10); 3209using Bitmap image2 = new(10, 10); 3237using Bitmap image1 = new(10, 10); 3238using Bitmap image2 = new(10, 10); 3394using Bitmap image1 = new(10, 10); 3395using Bitmap image2 = new(10, 10); 3484using Bitmap image1 = new(10, 10); 3485using Bitmap image2 = new(10, 10); 3514using Bitmap image1 = new(10, 10); 3515using Bitmap image2 = new(10, 10); 3605using Bitmap image = new(10, 10); 3648using Bitmap image = new(10, 10); 3697using Bitmap image = new(10, 10); 3729using Bitmap image = new(10, 10); 3752using Bitmap image1 = new(10, 10); 3753using Bitmap image2 = new(10, 10); 3873using Bitmap image1 = new(10, 10); 3874using Bitmap image2 = new(10, 10); 3903using Bitmap image1 = new(10, 10); 3904using Bitmap image2 = new(10, 10); 3966using Bitmap image = new(10, 10); 4142using Bitmap image1 = new(10, 10); 4143using Bitmap image2 = new(10, 10); 4243using Bitmap image1 = new(10, 10); 4244using Bitmap image2 = new(10, 10); 4281using Bitmap image1 = new(10, 10); 4282using Bitmap image2 = new(10, 10); 4441using Bitmap image1 = new(10, 10); 4442using Bitmap image2 = new(10, 10);
System\Windows\Forms\TreeViewTests.cs (3)
820using Bitmap image1 = new(10, 10); 831using Bitmap image2 = new(10, 10); 5666Bitmap image = new(10, 10);
System\Windows\Forms\UpDownBaseTests.cs (4)
632using Bitmap image1 = new(10, 10); 643using Bitmap image2 = new(10, 10); 2245using Bitmap image = new(10, 10); 2281using Bitmap image = new(10, 10);
System\Windows\Forms\UserControlTests.cs (2)
1094using Bitmap backgroundImage = new(10, 10); 1192using Bitmap backgroundImage = new(10, 10);
System\Windows\Forms\VisualStyles\VisualStyleRendererTests.cs (25)
136using Bitmap bitmap = new(10, 10); 170using Bitmap bitmap = new(10, 10); 205using Bitmap bitmap = new(10, 10); 223using Bitmap bitmap = new(10, 10); 233using Bitmap bitmap = new(10, 10); 243using Bitmap bitmap = new(10, 10); 267using Bitmap bitmap = new(10, 10); 269using Bitmap image = new(10, 10); 280using Bitmap bitmap = new(10, 10); 282using Bitmap image = new(10, 10); 293using Bitmap image = new(10, 10); 303using Bitmap image = new(10, 10); 304using Bitmap bitmap = new(10, 10); 313using Bitmap image = new(10, 10); 314using Bitmap bitmap = new(10, 10); 325using Bitmap bitmap = new(10, 10); 327using Bitmap image = new(10, 10); 352using Bitmap bitmap = new(10, 10); 379using Bitmap bitmap = new(10, 10); 418using Bitmap bitmap = new(10, 10); 449using Bitmap bitmap = new(10, 10); 480using Bitmap bitmap = new(10, 10); 490using Bitmap image = new(10, 10); 571using Bitmap image = new(10, 10); 583using Bitmap image = new(10, 10);
TextBoxBaseTests.cs (2)
470using Bitmap image1 = new(10, 10); 481using Bitmap image2 = new(10, 10);
TrackBarTests.cs (3)
465using Bitmap image1 = new(10, 10); 476using Bitmap image2 = new(10, 10); 3243using Bitmap bitmap = new(bitmapWidth, bitmapHeight);
WebBrowserBaseTests.cs (5)
672using Bitmap bitmap = new(20, 20); 694using Bitmap bitmap = new(20, 20); 723using Bitmap bitmap = new(10, 10); 737using Bitmap bitmap = new(10, 10); 751using 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)
21private readonly Bitmap _dragImage = new("./Resources/move.bmp"); 890private readonly Bitmap _dragImage = new("./Resources/image.png"); 891private 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);
WindowsFormsIntegration (15)
System\Windows\Integration\ElementHost.cs (1)
419using (SD.Bitmap bitmap = HostUtils.GetBitmapFromRenderTargetBitmap(this, renderBitmap, new Point(0, 0)))
System\Windows\Integration\ElementHostPropertyMap.cs (2)
74using (SD.Bitmap parentBitmap = HostUtils.GetCoveredPortionOfBitmap(parent, host)) 82using (SD.Bitmap elementHostBitmap = HostUtils.GetBitmapOfControl(host, host))
System\Windows\Integration\HostUtils.cs (11)
148internal static void SetBackgroundImage(WinFormsAdapter adapter, Control child, SD.Bitmap image) 161internal static SD.Bitmap GetBitmapForWindowsFormsHost(WindowsFormsHost host, Brush brush) 176internal static SD.Bitmap GetBitmapOfControl(Control control, ElementHost host) 183SD.Bitmap bitmap = new SD.Bitmap(control.ClientRectangle.Width, control.ClientRectangle.Height); 197internal static SD.Bitmap GetCoveredPortionOfBitmap(Control parentControl, ElementHost childElementHost) 199using (SD.Bitmap parentBitmap = GetBitmapOfControl(parentControl, childElementHost)) 201SD.Bitmap returnBitmap = new SD.Bitmap(childElementHost.ClientRectangle.Width, childElementHost.ClientRectangle.Height); 227internal static SD.Bitmap GetBitmapForTransparentWindowsFormsHost(WindowsFormsHost host) 281internal static SD.Bitmap GetBitmapFromRenderTargetBitmap(Control control, RenderTargetBitmap bmp, Point offset) 302SD.Bitmap chunk = new System.Drawing.Bitmap(width, height, graphicsTemplate); 330internal static SD.Bitmap GetBitmapForOpaqueWindowsFormsHost(WindowsFormsHost host, Brush brush)
System\Windows\Integration\WindowsFormsHostPropertyMap.cs (1)
90SD.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")),