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