1590 references to new
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 (1)
SystemDrawingExtension.cs (1)
107Bitmap bmp = new Bitmap(bitmapwidth, bitmapheight);
System.Drawing.Common.Tests (592)
mono\System.Drawing\BitmapTests.cs (3)
773using Bitmap bmp = new(20, 20); 781using (Bitmap bmp = new(20, 20)) 1143using Bitmap bmp = new(1, 1);
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);
System\Drawing\BitmapTests.cs (57)
164using Bitmap bitmap = new(width, height); 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))); 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))); 349Bitmap image = new(1, 1); 425using Bitmap bitmap = new(3, 3); 439using Bitmap bitmap = new(3, 3); 455using Bitmap bitmap = new(1, 1); 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); 558using Bitmap bitmap = new(1, 1); 567using Bitmap bitmap = new(1, 1); 581Bitmap bitmap = new(1, 1); 646Bitmap bitmap = new(1, 1); 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); 941using Bitmap bitmap = new(1, 1); 950using Bitmap bitmap = new(1, 1); 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); 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); 1446using Bitmap bitmap = new(1, 1); 1453Bitmap bitmap = new(1, 1); 1567using (Bitmap bitmap = new(100, 100)) 1589using (Bitmap bitmap = new(100, 100)) 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 (186)
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); 276Bitmap image = new(10, 10); 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); 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); 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\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 (9)
31using Bitmap bitmap = new(1, 1); 89using Bitmap bitmap = new(1, 1); 111using Bitmap bitmap = new(1, 1); 132using Bitmap bitmap = new(1, 1); 179using Bitmap bitmap = new(1, 1); 203using Bitmap bitmap = new(1, 1); 228using Bitmap bitmap = new(1, 1); 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\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 (17)
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 (1)
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\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 (1)
1036Bitmap disabledBitmap = new(size.Width, size.Height);
System\Windows\Forms\Rendering\ControlPaint.cs (7)
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);
System.Windows.Forms.Design (1)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (1)
293_swatch = new Bitmap(width, height);
System.Windows.Forms.Design.Tests (31)
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\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.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 (917)
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 (82)
54using Bitmap bitmap = new(3, 1); 125using Bitmap mask = new(3, 1); 132using Bitmap bitmap = new(3, 1); 165using Bitmap bitmap = new(3, 1); 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 (12)
379BackgroundImage = new Bitmap(10, 10) 383BackgroundImage = new Bitmap(10, 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 (12)
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);
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 (78)
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); 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 (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 (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 (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 (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 (9)
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 }; 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);
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 (1)
PropertyGridTests.cs (1)
181using Image newImage = new Bitmap(100, 100);
WindowsFormsIntegration (3)
System\Windows\Integration\HostUtils.cs (3)
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);