359 references to new
PresentationFramework-SystemDrawing (1)
SystemDrawingExtension.cs (1)
166
Bitmap bitmapFinal = new
Bitmap
(
System.Drawing.Common.Tests (141)
mono\System.Drawing.Imaging\BmpCodecTests.cs (1)
429
Bitmap bmp =
new
(100, 100, original);
mono\System.Drawing.Imaging\GifCodecTests.cs (1)
183
Bitmap bmp =
new
(100, 100, original);
mono\System.Drawing.Imaging\IconCodecTests.cs (1)
1867
Bitmap bmp =
new
(100, 100, original);
mono\System.Drawing.Imaging\JpegCodecTests.cs (1)
348
Bitmap bmp =
new
(100, 100, original);
mono\System.Drawing.Imaging\PngCodecTests.cs (1)
569
Bitmap bmp =
new
(100, 100, original);
mono\System.Drawing.Imaging\TiffCodecTests.cs (1)
240
Bitmap bmp =
new
(100, 100, original);
mono\System.Drawing\BitmapTests.cs (16)
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);
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))
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);
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 (65)
188
using Bitmap bitmap =
new
(width, height, pixelFormat);
225
AssertExtensions.Throws<ArgumentException>(null, () => new
Bitmap
(width, 1, PixelFormat.Format16bppArgb1555));
240
AssertExtensions.Throws<ArgumentException>(null, () => new
Bitmap
(1, height, PixelFormat.Format16bppArgb1555));
257
AssertExtensions.Throws<ArgumentException>(null, () => new
Bitmap
(1, 1, format));
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 };
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 };
463
using Bitmap bitmap =
new
(1, 1, PixelFormat.Format16bppGrayScale);
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) };
574
using Bitmap bitmap =
new
(1, 1, PixelFormat.Format16bppGrayScale);
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);
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);
892
using Bitmap bitmap =
new
(1, 1, PixelFormat.Format16bppGrayScale);
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);
957
using Bitmap bitmap =
new
(1, 1, PixelFormat.Format16bppGrayScale);
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 };
1287
using Bitmap bitmap =
new
(2, 1, format);
1439
using Bitmap bitmap =
new
(1, 1, pixelFormat);
1468
using (Bitmap bitmap =
new
(1, 1, PixelFormat.Format32bppRgb))
1523
using (Bitmap bitmap =
new
(1, 1, PixelFormat.Format32bppArgb))
System\Drawing\GraphicsTests.cs (6)
250
using Bitmap image =
new
(10, 10, format);
267
using Bitmap image =
new
(10, 10, format);
294
using Bitmap image =
new
(10, 10, format);
1924
using Bitmap image =
new
(10, 10, pixelFormat);
2883
using Bitmap bitmap =
new
(10, 10, sourceFormat);
2887
using Bitmap bitmap2 =
new
(10, 10, destinationFormat);
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.Windows.Forms (4)
System\Windows\Forms\Control.cs (1)
4878
using Bitmap image =
new
(width, height, bitmap.PixelFormat);
System\Windows\Forms\Controls\ImageList\ImageList.cs (1)
631
result = new
Bitmap
(_imageSize.Width, _imageSize.Height, PixelFormat.Format32bppArgb);
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (1)
878
using Bitmap textBmp =
new
(textSize.Width, textSize.Height, PixelFormat.Format32bppPArgb);
System\Windows\Forms\Rendering\ControlPaint.cs (1)
2431
Bitmap result =
new
(bitmap.Width, bitmap.Height, bitmap.PixelFormat);
System.Windows.Forms.Design (4)
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (1)
1019
_dragImage = new
Bitmap
(imageWidth, imageHeight, Drawing.Imaging.PixelFormat.Format32bppPArgb);
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.Primitives (1)
System\Windows\Forms\Internals\ScaleHelper.cs (1)
177
Bitmap scaledBitmap =
new
(desiredSize.Width, desiredSize.Height, bitmap.PixelFormat);
System.Windows.Forms.Tests (207)
System\Windows\Forms\ControlPaintTests.cs (33)
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 };
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 };
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) };
System\Windows\Forms\ControlTests.Handlers.cs (41)
3836
foreach (Image backgroundImage in new Image[] { null, new
Bitmap
(10, 10, PixelFormat.Format32bppRgb), new
Bitmap
(10, 10, PixelFormat.Format32bppArgb) })
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 };
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 };
System\Windows\Forms\ControlTests.Properties.cs (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\ImageList.ImageCollectionTests.cs (13)
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);
System\Windows\Forms\ScrollableControlTests.cs (41)
1510
foreach (Image backgroundImage in new Image[] { null, new
Bitmap
(10, 10, PixelFormat.Format32bppRgb), new
Bitmap
(10, 10, PixelFormat.Format32bppArgb) })
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 };
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 };
System\Windows\Forms\TabPageTests.cs (28)
3958
foreach (Image backgroundImage in new Image[] { null, new
Bitmap
(10, 10, PixelFormat.Format32bppRgb), new
Bitmap
(10, 10, PixelFormat.Format32bppArgb) })
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 };
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 };
System\Windows\Forms\ToolStripTests.cs (41)
5851
foreach (Image backgroundImage in new Image[] { null, new
Bitmap
(10, 10, PixelFormat.Format32bppRgb), new
Bitmap
(10, 10, PixelFormat.Format32bppArgb) })
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 };
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 };
System.Windows.Forms.UI.IntegrationTests (1)
Infra\ScreenshotService.cs (1)
62
Bitmap bitmap =
new
(width, height, PixelFormat.Format32bppArgb);