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