322 references to Format32bppArgb
System.Drawing.Common.Tests (134)
mono\System.Drawing.Imaging\BmpCodecTests.cs (1)
480
Save(PixelFormat.
Format32bppArgb
, PixelFormat.Format32bppRgb, true);
mono\System.Drawing.Imaging\GifCodecTests.cs (1)
244
Save(PixelFormat.
Format32bppArgb
, PixelFormat.Format8bppIndexed, false);
mono\System.Drawing.Imaging\IconCodecTests.cs (12)
45
Assert.Equal(PixelFormat.
Format32bppArgb
, image.PixelFormat);
50
Assert.Equal(PixelFormat.
Format32bppArgb
, bmp.PixelFormat);
74
Assert.Equal(PixelFormat.
Format32bppArgb
, bmp.PixelFormat);
222
Assert.Equal(PixelFormat.
Format32bppArgb
, bmp.PixelFormat);
427
Assert.Equal(PixelFormat.
Format32bppArgb
, bmp.PixelFormat);
649
Assert.Equal(PixelFormat.
Format32bppArgb
, bmp.PixelFormat);
907
Assert.Equal(PixelFormat.
Format32bppArgb
, bmp.PixelFormat);
1841
Assert.Equal(PixelFormat.
Format32bppArgb
, bmp.PixelFormat);
1915
Save(PixelFormat.Format32bppRgb, PixelFormat.
Format32bppArgb
, true);
1921
Save(PixelFormat.
Format32bppArgb
, PixelFormat.
Format32bppArgb
, true);
1927
Save(PixelFormat.Format32bppPArgb, PixelFormat.
Format32bppArgb
, true);
mono\System.Drawing.Imaging\JpegCodecTests.cs (1)
400
Save(PixelFormat.
Format32bppArgb
, PixelFormat.Format24bppRgb);
mono\System.Drawing.Imaging\PngCodecTests.cs (5)
250
Assert.Equal(PixelFormat.
Format32bppArgb
, bmp.PixelFormat);
614
Save(PixelFormat.Format32bppRgb, PixelFormat.
Format32bppArgb
, true);
620
Save(PixelFormat.
Format32bppArgb
, PixelFormat.
Format32bppArgb
, true);
626
Save(PixelFormat.Format32bppPArgb, PixelFormat.
Format32bppArgb
, true);
mono\System.Drawing.Imaging\TiffCodecTests.cs (4)
285
Save(PixelFormat.Format32bppRgb, PixelFormat.
Format32bppArgb
, true);
291
Save(PixelFormat.
Format32bppArgb
, PixelFormat.
Format32bppArgb
, true);
297
Save(PixelFormat.Format32bppPArgb, PixelFormat.
Format32bppArgb
, true);
mono\System.Drawing\BitmapTests.cs (17)
282
public void Format32bppArgb() => FormatTest(PixelFormat.
Format32bppArgb
);
321
using Bitmap bmpNew = bmp.Clone(rect, PixelFormat.
Format32bppArgb
);
375
using Bitmap bmp_rotate = src.Clone(new RectangleF(0, 0, width, height), PixelFormat.
Format32bppArgb
);
557
using Bitmap bmp = CreateBitmap(100, 100, PixelFormat.
Format32bppArgb
);
562
byte[] actual = HashLock(bmp, bmp.Width, bmp.Height, PixelFormat.
Format32bppArgb
, ImageLockMode.ReadWrite);
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
);
617
byte[] actual = HashLock(bmp, 50, 50, PixelFormat.
Format32bppArgb
, ImageLockMode.ReadWrite);
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
);
680
data = bmp.LockBits(new Rectangle(0, 0, 1, 1), ImageLockMode.ReadOnly, PixelFormat.
Format32bppArgb
);
709
data = bmp.LockBits(new Rectangle(0, 0, 1, 1), ImageLockMode.ReadWrite, PixelFormat.
Format32bppArgb
);
729
using (Bitmap bmp = new(1, 1, PixelFormat.
Format32bppArgb
))
1176
b.PixelFormat.Should().Be(PixelFormat.
Format32bppArgb
, msg);
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 (34)
36
yield return new object[] { "16x16_one_entry_4bit.ico", 16, 16, PixelFormat.
Format32bppArgb
, ImageFormat.Icon };
167
Assert.Equal(PixelFormat.
Format32bppArgb
, bitmap.PixelFormat);
180
[InlineData(5, 15, PixelFormat.
Format32bppArgb
)]
198
yield return new object[] { 5, 15, int.MaxValue, PixelFormat.
Format32bppArgb
, IntPtr.Zero };
272
yield return new object[] { new Bitmap(1, 1, PixelFormat.
Format32bppArgb
), 1, 1 };
307
Assert.Equal(PixelFormat.
Format32bppArgb
, bitmap.PixelFormat);
324
Assert.Equal(PixelFormat.
Format32bppArgb
, bitmap.PixelFormat);
335
Assert.Equal(PixelFormat.
Format32bppArgb
, bitmap.PixelFormat);
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 };
464
Assert.Throws<OutOfMemoryException>(() => bitmap.Clone(new Rectangle(0, 0, 1, 1), PixelFormat.
Format32bppArgb
));
465
Assert.Throws<OutOfMemoryException>(() => bitmap.Clone(new RectangleF(0, 0, 1, 1), PixelFormat.
Format32bppArgb
));
485
AssertExtensions.Throws<ArgumentException>(null, () => bitmap.Clone(new Rectangle(0, 0, 1, 1), PixelFormat.
Format32bppArgb
));
486
AssertExtensions.Throws<ArgumentException>(null, () => bitmap.Clone(new RectangleF(0, 0, 1, 1), PixelFormat.
Format32bppArgb
));
590
yield return new object[] { new Bitmap(32, 32, PixelFormat.
Format32bppArgb
), 32, 32 };
703
Assert.Equal(PixelFormat.
Format32bppArgb
, result.PixelFormat);
1013
static Bitmap bitmap() => new(2, 2, PixelFormat.
Format32bppArgb
);
1014
yield return new object[] { bitmap(), new Rectangle(0, 0, 2, 2), ImageLockMode.ReadOnly, PixelFormat.
Format32bppArgb
, 8, 1 };
1015
yield return new object[] { bitmap(), new Rectangle(0, 0, 2, 2), ImageLockMode.ReadWrite, PixelFormat.
Format32bppArgb
, 8, 3 };
1016
yield return new object[] { bitmap(), new Rectangle(0, 0, 2, 2), ImageLockMode.WriteOnly, PixelFormat.
Format32bppArgb
, 8, 2 };
1044
yield return new object[] { bitmap(), new Rectangle(1, 1, 1, 1), ImageLockMode.ReadOnly, PixelFormat.
Format32bppArgb
, 8, 1 };
1045
yield return new object[] { bitmap(), new Rectangle(1, 1, 1, 1), ImageLockMode.ReadWrite, PixelFormat.
Format32bppArgb
, 8, 3 };
1046
yield return new object[] { bitmap(), new Rectangle(1, 1, 1, 1), ImageLockMode.WriteOnly, PixelFormat.
Format32bppArgb
, 8, 2 };
1048
yield return new object[] { bitmap(), new Rectangle(1, 1, 1, 1), ImageLockMode.ReadOnly - 1, PixelFormat.
Format32bppArgb
, 8, 0 };
1175
AssertExtensions.Throws<ArgumentException>(null, () => bitmap.LockBits(new Rectangle(0, 0, 1, 1), ImageLockMode.ReadOnly, PixelFormat.
Format32bppArgb
));
1178
AssertExtensions.Throws<ArgumentException>(null, () => bitmap.LockBits(new Rectangle(0, 0, 1, 1), ImageLockMode.ReadOnly, PixelFormat.
Format32bppArgb
, bitmapData));
1279
[InlineData(PixelFormat.
Format32bppArgb
)]
1474
BitmapData data = bitmap.LockBits(new Rectangle(0, 0, 1, 1), ImageLockMode.ReadOnly, PixelFormat.
Format32bppArgb
);
1503
data = bitmap.LockBits(new Rectangle(0, 0, 1, 1), ImageLockMode.ReadWrite, PixelFormat.
Format32bppArgb
);
1523
using (Bitmap bitmap = new(1, 1, PixelFormat.
Format32bppArgb
))
1612
{ PixelFormat.
Format32bppArgb
, DitherType.DualSpiral4x4, PaletteType.FixedHalftone8 },
1619
{ PixelFormat.
Format32bppArgb
, DitherType.None, PaletteType.FixedHalftone256 },
1670
PixelFormat.
Format32bppArgb
,
System\Drawing\GraphicsTests.cs (5)
242
[InlineData(PixelFormat.
Format32bppArgb
)]
1916
yield return new object[] { PixelFormat.
Format32bppArgb
, Color.Red, Color.FromArgb(Color.Red.ToArgb()) };
2877
[InlineData(PixelFormat.
Format32bppArgb
, PixelFormat.Format16bppRgb555, false)]
2903
BitmapData data = bitmap.LockBits(default, ImageLockMode.ReadOnly, PixelFormat.
Format32bppArgb
);
2917
BitmapData data = bitmap.LockBits(default, ImageLockMode.ReadOnly, PixelFormat.
Format32bppArgb
);
System\Drawing\IconTests.cs (2)
525
Assert.Equal(PixelFormat.
Format32bppArgb
, bitmap.PixelFormat);
563
Assert.Equal(PixelFormat.
Format32bppArgb
, bitmap.PixelFormat);
System\Drawing\ImageTests.cs (2)
576
[InlineData(PixelFormat.
Format32bppArgb
, 32)]
589
[InlineData(PixelFormat.
Format32bppArgb
, true)]
System\Drawing\Imaging\BitmapDataTests.cs (1)
106
[InlineData(PixelFormat.
Format32bppArgb
)]
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\TextureBrushTests.cs (1)
14
yield return new object[] { new Metafile(Helpers.GetTestBitmapPath("telescope_01.wmf")), PixelFormat.
Format32bppArgb
, new Size(490, 654) };
System.Windows.Forms (4)
System\Windows\Forms\Controls\ImageList\ImageList.cs (3)
573
if (bmpData.PixelFormat is not PixelFormat.
Format32bppArgb
and not PixelFormat.Format32bppRgb)
631
result = new Bitmap(_imageSize.Width, _imageSize.Height, PixelFormat.
Format32bppArgb
);
632
targetData = result.LockBits(new Rectangle(0, 0, _imageSize.Width, _imageSize.Height), ImageLockMode.WriteOnly, PixelFormat.
Format32bppArgb
);
System\Windows\Forms\Rendering\ControlPaint.cs (1)
270
PixelFormat.
Format32bppArgb
);
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\DesignerUtils.cs (1)
671
BitmapData data = b.LockBits(new Rectangle(0, 0, b.Width, b.Height), ImageLockMode.ReadWrite, PixelFormat.
Format32bppArgb
);
System.Windows.Forms.Tests (180)
System\Windows\Forms\ControlPaintTests.cs (11)
15
yield return new object[] { new Bitmap(10, 10, PixelFormat.
Format32bppArgb
), Color.Empty };
18
yield return new object[] { new Bitmap(10, 10, PixelFormat.
Format32bppArgb
), Color.Red };
21
yield return new object[] { new Bitmap(10, 10, PixelFormat.
Format32bppArgb
), Color.Transparent };
24
yield return new object[] { new Bitmap(11, 11, PixelFormat.
Format32bppArgb
), Color.Red };
27
yield return new object[] { new Bitmap(16, 24, PixelFormat.
Format32bppArgb
), Color.Red };
91
yield return new object[] { new Bitmap(10, 10, PixelFormat.
Format32bppArgb
), monochromeMask };
94
yield return new object[] { new Bitmap(16, 24, PixelFormat.
Format32bppArgb
), monochromeMask };
97
yield return new object[] { new Bitmap(11, 11, PixelFormat.
Format32bppArgb
), monochromeMask };
200
yield return new object[] { new Bitmap(10, 10, PixelFormat.
Format32bppArgb
) };
203
yield return new object[] { new Bitmap(16, 24, PixelFormat.
Format32bppArgb
) };
206
yield return new object[] { new Bitmap(11, 11, PixelFormat.
Format32bppArgb
) };
System\Windows\Forms\ControlTests.Handlers.cs (37)
3836
foreach (Image backgroundImage in new Image[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb), new Bitmap(10, 10, PixelFormat.
Format32bppArgb
) })
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 };
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 };
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 (5)
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 };
System\Windows\Forms\DataObject_BitmapBinderTests.cs (2)
69
BitmapData originalData = bitmap.LockBits(default, ImageLockMode.ReadOnly, PixelFormat.
Format32bppArgb
);
70
BitmapData deserializedData = deserializedBitmap.LockBits(default, ImageLockMode.ReadOnly, PixelFormat.
Format32bppArgb
);
System\Windows\Forms\ImageList.ImageCollectionTests.cs (26)
53
using Bitmap image32bppArgbNotTransparent = new(7, 8, PixelFormat.
Format32bppArgb
);
54
using Bitmap image32bppArgbTransparent = new(9, 10, PixelFormat.
Format32bppArgb
);
66
Assert.Equal(PixelFormat.
Format32bppArgb
, bitmap1.PixelFormat);
71
Assert.Equal(PixelFormat.
Format32bppArgb
, bitmap2.PixelFormat);
76
Assert.Equal(PixelFormat.
Format32bppArgb
, bitmap3.PixelFormat);
81
Assert.Equal(PixelFormat.
Format32bppArgb
, bitmap4.PixelFormat);
86
Assert.Equal(PixelFormat.
Format32bppArgb
, bitmap5.PixelFormat);
101
using Bitmap image32bppArgbNotTransparent = new(7, 8, PixelFormat.
Format32bppArgb
);
102
using Bitmap image32bppArgbTransparent = new(9, 10, PixelFormat.
Format32bppArgb
);
114
Assert.Equal(PixelFormat.
Format32bppArgb
, bitmap1.PixelFormat);
119
Assert.Equal(PixelFormat.
Format32bppArgb
, bitmap2.PixelFormat);
124
Assert.Equal(PixelFormat.
Format32bppArgb
, bitmap3.PixelFormat);
129
Assert.Equal(PixelFormat.
Format32bppArgb
, bitmap4.PixelFormat);
134
Assert.Equal(PixelFormat.
Format32bppArgb
, bitmap5.PixelFormat);
145
PixelFormat.
Format32bppArgb
,
210
Assert.Equal(PixelFormat.
Format32bppArgb
, resultImage.PixelFormat);
273
Assert.Equal(PixelFormat.
Format32bppArgb
, bitmap.PixelFormat);
294
Assert.Equal(PixelFormat.
Format32bppArgb
, bitmap.PixelFormat);
360
Assert.Equal(PixelFormat.
Format32bppArgb
, result1.PixelFormat);
367
Assert.Equal(PixelFormat.
Format32bppArgb
, result1.PixelFormat);
1172
Assert.Equal(PixelFormat.
Format32bppArgb
, result1.PixelFormat);
1178
Assert.Equal(PixelFormat.
Format32bppArgb
, result2.PixelFormat);
1210
Assert.Equal(PixelFormat.
Format32bppArgb
, result1.PixelFormat);
1216
Assert.Equal(PixelFormat.
Format32bppArgb
, result2.PixelFormat);
1646
Assert.Equal(PixelFormat.
Format32bppArgb
, bitmap.PixelFormat);
1667
Assert.Equal(PixelFormat.
Format32bppArgb
, bitmap.PixelFormat);
System\Windows\Forms\ScrollableControlTests.cs (37)
1510
foreach (Image backgroundImage in new Image[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb), new Bitmap(10, 10, PixelFormat.
Format32bppArgb
) })
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 };
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 };
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 (25)
3958
foreach (Image backgroundImage in new Image[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb), new Bitmap(10, 10, PixelFormat.
Format32bppArgb
) })
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 };
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 (37)
5851
foreach (Image backgroundImage in new Image[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb), new Bitmap(10, 10, PixelFormat.
Format32bppArgb
) })
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 };
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 };
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 (3)
Infra\ScreenRecordService.cs (2)
248
lockedBitmaps[0] = (frames[0].image, frames[0].image.LockBits(bounds, ImageLockMode.ReadOnly, PixelFormat.
Format32bppArgb
));
267
lockedBitmaps[currentFrameBufferIndex] = (frames[i].image, frames[i].image.LockBits(bounds, ImageLockMode.ReadOnly, PixelFormat.
Format32bppArgb
));
Infra\ScreenshotService.cs (1)
62
Bitmap bitmap = new(width, height, PixelFormat.
Format32bppArgb
);