322 references to Format32bppArgb
System.Drawing.Common.Tests (134)
mono\System.Drawing.Imaging\BmpCodecTests.cs (1)
480Save(PixelFormat.Format32bppArgb, PixelFormat.Format32bppRgb, true);
mono\System.Drawing.Imaging\GifCodecTests.cs (1)
244Save(PixelFormat.Format32bppArgb, PixelFormat.Format8bppIndexed, false);
mono\System.Drawing.Imaging\IconCodecTests.cs (12)
45Assert.Equal(PixelFormat.Format32bppArgb, image.PixelFormat); 50Assert.Equal(PixelFormat.Format32bppArgb, bmp.PixelFormat); 74Assert.Equal(PixelFormat.Format32bppArgb, bmp.PixelFormat); 222Assert.Equal(PixelFormat.Format32bppArgb, bmp.PixelFormat); 427Assert.Equal(PixelFormat.Format32bppArgb, bmp.PixelFormat); 649Assert.Equal(PixelFormat.Format32bppArgb, bmp.PixelFormat); 907Assert.Equal(PixelFormat.Format32bppArgb, bmp.PixelFormat); 1841Assert.Equal(PixelFormat.Format32bppArgb, bmp.PixelFormat); 1915Save(PixelFormat.Format32bppRgb, PixelFormat.Format32bppArgb, true); 1921Save(PixelFormat.Format32bppArgb, PixelFormat.Format32bppArgb, true); 1927Save(PixelFormat.Format32bppPArgb, PixelFormat.Format32bppArgb, true);
mono\System.Drawing.Imaging\JpegCodecTests.cs (1)
400Save(PixelFormat.Format32bppArgb, PixelFormat.Format24bppRgb);
mono\System.Drawing.Imaging\PngCodecTests.cs (5)
250Assert.Equal(PixelFormat.Format32bppArgb, bmp.PixelFormat); 614Save(PixelFormat.Format32bppRgb, PixelFormat.Format32bppArgb, true); 620Save(PixelFormat.Format32bppArgb, PixelFormat.Format32bppArgb, true); 626Save(PixelFormat.Format32bppPArgb, PixelFormat.Format32bppArgb, true);
mono\System.Drawing.Imaging\TiffCodecTests.cs (4)
285Save(PixelFormat.Format32bppRgb, PixelFormat.Format32bppArgb, true); 291Save(PixelFormat.Format32bppArgb, PixelFormat.Format32bppArgb, true); 297Save(PixelFormat.Format32bppPArgb, PixelFormat.Format32bppArgb, true);
mono\System.Drawing\BitmapTests.cs (17)
282public void Format32bppArgb() => FormatTest(PixelFormat.Format32bppArgb); 321using Bitmap bmpNew = bmp.Clone(rect, PixelFormat.Format32bppArgb); 375using Bitmap bmp_rotate = src.Clone(new RectangleF(0, 0, width, height), PixelFormat.Format32bppArgb); 557using Bitmap bmp = CreateBitmap(100, 100, PixelFormat.Format32bppArgb); 562byte[] actual = HashLock(bmp, bmp.Width, bmp.Height, PixelFormat.Format32bppArgb, ImageLockMode.ReadWrite); 571using Bitmap bmp = CreateBitmap(100, 100, PixelFormat.Format32bppArgb); 584using Bitmap bmp = CreateBitmap(100, 100, PixelFormat.Format32bppArgb); 597using Bitmap bmp = CreateBitmap(100, 100, PixelFormat.Format32bppArgb); 613using Bitmap bmp = CreateBitmap(100, 100, PixelFormat.Format32bppArgb); 617byte[] actual = HashLock(bmp, 50, 50, PixelFormat.Format32bppArgb, ImageLockMode.ReadWrite); 626using Bitmap bmp = CreateBitmap(100, 100, PixelFormat.Format32bppArgb); 639using Bitmap bmp = CreateBitmap(100, 100, PixelFormat.Format32bppArgb); 652using Bitmap bmp = CreateBitmap(100, 100, PixelFormat.Format32bppArgb); 680data = bmp.LockBits(new Rectangle(0, 0, 1, 1), ImageLockMode.ReadOnly, PixelFormat.Format32bppArgb); 709data = bmp.LockBits(new Rectangle(0, 0, 1, 1), ImageLockMode.ReadWrite, PixelFormat.Format32bppArgb); 729using (Bitmap bmp = new(1, 1, PixelFormat.Format32bppArgb)) 1176b.PixelFormat.Should().Be(PixelFormat.Format32bppArgb, msg);
mono\System.Imaging\MetafileTest.cs (5)
216using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 233using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 249using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 289using (Bitmap bmp = new(100, 100, PixelFormat.Format32bppArgb)) 331using Bitmap bmp = new(100, 100, PixelFormat.Format32bppArgb);
System\Drawing\BitmapTests.cs (34)
36yield return new object[] { "16x16_one_entry_4bit.ico", 16, 16, PixelFormat.Format32bppArgb, ImageFormat.Icon }; 167Assert.Equal(PixelFormat.Format32bppArgb, bitmap.PixelFormat); 180[InlineData(5, 15, PixelFormat.Format32bppArgb)] 198yield return new object[] { 5, 15, int.MaxValue, PixelFormat.Format32bppArgb, IntPtr.Zero }; 272yield return new object[] { new Bitmap(1, 1, PixelFormat.Format32bppArgb), 1, 1 }; 307Assert.Equal(PixelFormat.Format32bppArgb, bitmap.PixelFormat); 324Assert.Equal(PixelFormat.Format32bppArgb, bitmap.PixelFormat); 335Assert.Equal(PixelFormat.Format32bppArgb, bitmap.PixelFormat); 359yield return new object[] { new Bitmap(3, 3, PixelFormat.Format32bppArgb), new Rectangle(0, 0, 3, 3), PixelFormat.Format32bppArgb }; 360yield return new object[] { new Bitmap(3, 3, PixelFormat.Format32bppArgb), new Rectangle(0, 0, 3, 3), PixelFormat.Format24bppRgb }; 464Assert.Throws<OutOfMemoryException>(() => bitmap.Clone(new Rectangle(0, 0, 1, 1), PixelFormat.Format32bppArgb)); 465Assert.Throws<OutOfMemoryException>(() => bitmap.Clone(new RectangleF(0, 0, 1, 1), PixelFormat.Format32bppArgb)); 485AssertExtensions.Throws<ArgumentException>(null, () => bitmap.Clone(new Rectangle(0, 0, 1, 1), PixelFormat.Format32bppArgb)); 486AssertExtensions.Throws<ArgumentException>(null, () => bitmap.Clone(new RectangleF(0, 0, 1, 1), PixelFormat.Format32bppArgb)); 590yield return new object[] { new Bitmap(32, 32, PixelFormat.Format32bppArgb), 32, 32 }; 703Assert.Equal(PixelFormat.Format32bppArgb, result.PixelFormat); 1013static Bitmap bitmap() => new(2, 2, PixelFormat.Format32bppArgb); 1014yield return new object[] { bitmap(), new Rectangle(0, 0, 2, 2), ImageLockMode.ReadOnly, PixelFormat.Format32bppArgb, 8, 1 }; 1015yield return new object[] { bitmap(), new Rectangle(0, 0, 2, 2), ImageLockMode.ReadWrite, PixelFormat.Format32bppArgb, 8, 3 }; 1016yield return new object[] { bitmap(), new Rectangle(0, 0, 2, 2), ImageLockMode.WriteOnly, PixelFormat.Format32bppArgb, 8, 2 }; 1044yield return new object[] { bitmap(), new Rectangle(1, 1, 1, 1), ImageLockMode.ReadOnly, PixelFormat.Format32bppArgb, 8, 1 }; 1045yield return new object[] { bitmap(), new Rectangle(1, 1, 1, 1), ImageLockMode.ReadWrite, PixelFormat.Format32bppArgb, 8, 3 }; 1046yield return new object[] { bitmap(), new Rectangle(1, 1, 1, 1), ImageLockMode.WriteOnly, PixelFormat.Format32bppArgb, 8, 2 }; 1048yield return new object[] { bitmap(), new Rectangle(1, 1, 1, 1), ImageLockMode.ReadOnly - 1, PixelFormat.Format32bppArgb, 8, 0 }; 1175AssertExtensions.Throws<ArgumentException>(null, () => bitmap.LockBits(new Rectangle(0, 0, 1, 1), ImageLockMode.ReadOnly, PixelFormat.Format32bppArgb)); 1178AssertExtensions.Throws<ArgumentException>(null, () => bitmap.LockBits(new Rectangle(0, 0, 1, 1), ImageLockMode.ReadOnly, PixelFormat.Format32bppArgb, bitmapData)); 1279[InlineData(PixelFormat.Format32bppArgb)] 1474BitmapData data = bitmap.LockBits(new Rectangle(0, 0, 1, 1), ImageLockMode.ReadOnly, PixelFormat.Format32bppArgb); 1503data = bitmap.LockBits(new Rectangle(0, 0, 1, 1), ImageLockMode.ReadWrite, PixelFormat.Format32bppArgb); 1523using (Bitmap bitmap = new(1, 1, PixelFormat.Format32bppArgb)) 1612{ PixelFormat.Format32bppArgb, DitherType.DualSpiral4x4, PaletteType.FixedHalftone8 }, 1619{ PixelFormat.Format32bppArgb, DitherType.None, PaletteType.FixedHalftone256 }, 1670PixelFormat.Format32bppArgb,
System\Drawing\GraphicsTests.cs (5)
242[InlineData(PixelFormat.Format32bppArgb)] 1916yield return new object[] { PixelFormat.Format32bppArgb, Color.Red, Color.FromArgb(Color.Red.ToArgb()) }; 2877[InlineData(PixelFormat.Format32bppArgb, PixelFormat.Format16bppRgb555, false)] 2903BitmapData data = bitmap.LockBits(default, ImageLockMode.ReadOnly, PixelFormat.Format32bppArgb); 2917BitmapData data = bitmap.LockBits(default, ImageLockMode.ReadOnly, PixelFormat.Format32bppArgb);
System\Drawing\IconTests.cs (2)
525Assert.Equal(PixelFormat.Format32bppArgb, bitmap.PixelFormat); 563Assert.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)
122using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 141using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 168using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 184using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 204using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 214using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 225using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 234using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 244using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 254using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 265using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 301using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 319using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 337using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 353using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 370using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 397using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 408using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 421using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 433using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 446using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 462using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 478using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 495using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 513using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 530using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 546using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 562using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 579using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 597using (Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb)) 635using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 657using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 675using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 692using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 708using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 724using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 735using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 746using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 758using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 771using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 797using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 812using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb); 824using Bitmap bmp = new(10, 10, PixelFormat.Format32bppArgb);
System\Drawing\TextureBrushTests.cs (1)
14yield 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)
573if (bmpData.PixelFormat is not PixelFormat.Format32bppArgb and not PixelFormat.Format32bppRgb) 631result = new Bitmap(_imageSize.Width, _imageSize.Height, PixelFormat.Format32bppArgb); 632targetData = result.LockBits(new Rectangle(0, 0, _imageSize.Width, _imageSize.Height), ImageLockMode.WriteOnly, PixelFormat.Format32bppArgb);
System\Windows\Forms\Rendering\ControlPaint.cs (1)
270PixelFormat.Format32bppArgb);
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\DesignerUtils.cs (1)
671BitmapData 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)
15yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppArgb), Color.Empty }; 18yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppArgb), Color.Red }; 21yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppArgb), Color.Transparent }; 24yield return new object[] { new Bitmap(11, 11, PixelFormat.Format32bppArgb), Color.Red }; 27yield return new object[] { new Bitmap(16, 24, PixelFormat.Format32bppArgb), Color.Red }; 91yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppArgb), monochromeMask }; 94yield return new object[] { new Bitmap(16, 24, PixelFormat.Format32bppArgb), monochromeMask }; 97yield return new object[] { new Bitmap(11, 11, PixelFormat.Format32bppArgb), monochromeMask }; 200yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppArgb) }; 203yield return new object[] { new Bitmap(16, 24, PixelFormat.Format32bppArgb) }; 206yield return new object[] { new Bitmap(11, 11, PixelFormat.Format32bppArgb) };
System\Windows\Forms\ControlTests.Handlers.cs (37)
3836foreach (Image backgroundImage in new Image[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb), new Bitmap(10, 10, PixelFormat.Format32bppArgb) }) 3912yield return new object[] { parent, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 3913yield return new object[] { parent, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 3914yield return new object[] { parent, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 1 }; 3915yield return new object[] { parent, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 1 }; 3916yield return new object[] { parent, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 3917yield return new object[] { parent, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 3919yield return new object[] { parent, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 3920yield return new object[] { parent, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 3921yield return new object[] { parent, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 2 }; 3922yield return new object[] { parent, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 2 }; 3923yield return new object[] { parent, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 3924yield return new object[] { parent, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 3956yield return new object[] { parent, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 3957yield return new object[] { parent, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 3958yield return new object[] { parent, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 3959yield return new object[] { parent, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 3960yield return new object[] { parent, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, expected1 }; 3961yield return new object[] { parent, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, expected1 }; 3963yield return new object[] { parent, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected1 }; 3964yield return new object[] { parent, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected1 }; 3965yield return new object[] { parent, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected1 }; 3966yield return new object[] { parent, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected1 }; 3967yield return new object[] { parent, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected1 }; 3968yield return new object[] { parent, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected1 }; 4084yield return new object[] { true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 4085yield return new object[] { true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 4086yield return new object[] { true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 1 }; 4087yield return new object[] { true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 1 }; 4088yield return new object[] { false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 4089yield return new object[] { false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 4091yield return new object[] { true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4092yield return new object[] { true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4093yield return new object[] { true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4094yield return new object[] { true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4095yield return new object[] { false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4096yield return new object[] { false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 };
System\Windows\Forms\ControlTests.Properties.cs (5)
2039yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, false }; 2040yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, false }; 2041yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Center, true }; 2042yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Stretch, true }; 2043yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Zoom, true };
System\Windows\Forms\DataObject_BitmapBinderTests.cs (2)
69BitmapData originalData = bitmap.LockBits(default, ImageLockMode.ReadOnly, PixelFormat.Format32bppArgb); 70BitmapData deserializedData = deserializedBitmap.LockBits(default, ImageLockMode.ReadOnly, PixelFormat.Format32bppArgb);
System\Windows\Forms\ImageList.ImageCollectionTests.cs (26)
53using Bitmap image32bppArgbNotTransparent = new(7, 8, PixelFormat.Format32bppArgb); 54using Bitmap image32bppArgbTransparent = new(9, 10, PixelFormat.Format32bppArgb); 66Assert.Equal(PixelFormat.Format32bppArgb, bitmap1.PixelFormat); 71Assert.Equal(PixelFormat.Format32bppArgb, bitmap2.PixelFormat); 76Assert.Equal(PixelFormat.Format32bppArgb, bitmap3.PixelFormat); 81Assert.Equal(PixelFormat.Format32bppArgb, bitmap4.PixelFormat); 86Assert.Equal(PixelFormat.Format32bppArgb, bitmap5.PixelFormat); 101using Bitmap image32bppArgbNotTransparent = new(7, 8, PixelFormat.Format32bppArgb); 102using Bitmap image32bppArgbTransparent = new(9, 10, PixelFormat.Format32bppArgb); 114Assert.Equal(PixelFormat.Format32bppArgb, bitmap1.PixelFormat); 119Assert.Equal(PixelFormat.Format32bppArgb, bitmap2.PixelFormat); 124Assert.Equal(PixelFormat.Format32bppArgb, bitmap3.PixelFormat); 129Assert.Equal(PixelFormat.Format32bppArgb, bitmap4.PixelFormat); 134Assert.Equal(PixelFormat.Format32bppArgb, bitmap5.PixelFormat); 145PixelFormat.Format32bppArgb, 210Assert.Equal(PixelFormat.Format32bppArgb, resultImage.PixelFormat); 273Assert.Equal(PixelFormat.Format32bppArgb, bitmap.PixelFormat); 294Assert.Equal(PixelFormat.Format32bppArgb, bitmap.PixelFormat); 360Assert.Equal(PixelFormat.Format32bppArgb, result1.PixelFormat); 367Assert.Equal(PixelFormat.Format32bppArgb, result1.PixelFormat); 1172Assert.Equal(PixelFormat.Format32bppArgb, result1.PixelFormat); 1178Assert.Equal(PixelFormat.Format32bppArgb, result2.PixelFormat); 1210Assert.Equal(PixelFormat.Format32bppArgb, result1.PixelFormat); 1216Assert.Equal(PixelFormat.Format32bppArgb, result2.PixelFormat); 1646Assert.Equal(PixelFormat.Format32bppArgb, bitmap.PixelFormat); 1667Assert.Equal(PixelFormat.Format32bppArgb, bitmap.PixelFormat);
System\Windows\Forms\ScrollableControlTests.cs (37)
1510foreach (Image backgroundImage in new Image[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb), new Bitmap(10, 10, PixelFormat.Format32bppArgb) }) 1596yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 1597yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 1598yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 1 }; 1599yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 1 }; 1600yield return new object[] { parentFactory(), hScroll, vScroll, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 1601yield return new object[] { parentFactory(), hScroll, vScroll, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 1603yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 1604yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 1605yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 2 }; 1606yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 2 }; 1607yield return new object[] { parentFactory(), hScroll, vScroll, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 1608yield return new object[] { parentFactory(), hScroll, vScroll, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 1646yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 1647yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 1648yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, expected1 }; 1649yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, expected1 }; 1650yield return new object[] { parentFactory(), hScroll, vScroll, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 1651yield return new object[] { parentFactory(), hScroll, vScroll, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 1653yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected1 }; 1654yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected1 }; 1655yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected1 }; 1656yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected1 }; 1657yield return new object[] { parentFactory(), hScroll, vScroll, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected1 }; 1658yield return new object[] { parentFactory(), hScroll, vScroll, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected1 }; 1796yield return new object[] { hScroll, vScroll, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 1797yield return new object[] { hScroll, vScroll, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 1798yield return new object[] { hScroll, vScroll, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 1 }; 1799yield return new object[] { hScroll, vScroll, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 1 }; 1800yield return new object[] { hScroll, vScroll, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 1801yield return new object[] { hScroll, vScroll, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 1803yield return new object[] { hScroll, vScroll, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 1804yield return new object[] { hScroll, vScroll, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 1805yield return new object[] { hScroll, vScroll, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 1806yield return new object[] { hScroll, vScroll, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 1807yield return new object[] { hScroll, vScroll, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 1808yield return new object[] { hScroll, vScroll, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 };
System\Windows\Forms\TabPageTests.cs (25)
3958foreach (Image backgroundImage in new Image[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb), new Bitmap(10, 10, PixelFormat.Format32bppArgb) }) 4025yield return new object[] { appearance, useVisualStyleBackColor, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 4026yield return new object[] { appearance, useVisualStyleBackColor, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 4027yield return new object[] { appearance, useVisualStyleBackColor, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 1 }; 4028yield return new object[] { appearance, useVisualStyleBackColor, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 1 }; 4029yield return new object[] { appearance, useVisualStyleBackColor, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 4030yield return new object[] { appearance, useVisualStyleBackColor, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 4032yield return new object[] { appearance, useVisualStyleBackColor, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4033yield return new object[] { appearance, useVisualStyleBackColor, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4034yield return new object[] { appearance, useVisualStyleBackColor, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4035yield return new object[] { appearance, useVisualStyleBackColor, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4036yield return new object[] { appearance, useVisualStyleBackColor, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4037yield return new object[] { appearance, useVisualStyleBackColor, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4164yield return new object[] { appearance, useVisualStyleBackColor, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 4165yield return new object[] { appearance, useVisualStyleBackColor, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 4166yield return new object[] { appearance, useVisualStyleBackColor, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 1 }; 4167yield return new object[] { appearance, useVisualStyleBackColor, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 1 }; 4168yield return new object[] { appearance, useVisualStyleBackColor, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 4169yield return new object[] { appearance, useVisualStyleBackColor, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 4171yield return new object[] { appearance, useVisualStyleBackColor, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4172yield return new object[] { appearance, useVisualStyleBackColor, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4173yield return new object[] { appearance, useVisualStyleBackColor, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4174yield return new object[] { appearance, useVisualStyleBackColor, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4175yield return new object[] { appearance, useVisualStyleBackColor, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4176yield return new object[] { appearance, useVisualStyleBackColor, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 };
System\Windows\Forms\ToolStripTests.cs (37)
5851foreach (Image backgroundImage in new Image[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb), new Bitmap(10, 10, PixelFormat.Format32bppArgb) }) 5938yield return new object[] { parent, hScroll, vScroll, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 5939yield return new object[] { parent, hScroll, vScroll, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 5940yield return new object[] { parent, hScroll, vScroll, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 1 }; 5941yield return new object[] { parent, hScroll, vScroll, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 1 }; 5942yield return new object[] { parent, hScroll, vScroll, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 5943yield return new object[] { parent, hScroll, vScroll, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 5945yield return new object[] { parent, hScroll, vScroll, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 5946yield return new object[] { parent, hScroll, vScroll, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 5947yield return new object[] { parent, hScroll, vScroll, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 2 }; 5948yield return new object[] { parent, hScroll, vScroll, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 2 }; 5949yield return new object[] { parent, hScroll, vScroll, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 5950yield return new object[] { parent, hScroll, vScroll, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 5996yield return new object[] { parent, hScroll, vScroll, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, expected1 }; 5997yield return new object[] { parent, hScroll, vScroll, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, expected1 }; 5998yield return new object[] { parent, hScroll, vScroll, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, expected1 }; 5999yield return new object[] { parent, hScroll, vScroll, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, expected1 }; 6000yield return new object[] { parent, hScroll, vScroll, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, expected2 }; 6001yield return new object[] { parent, hScroll, vScroll, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, expected2 }; 6003yield return new object[] { parent, hScroll, vScroll, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected2 }; 6004yield return new object[] { parent, hScroll, vScroll, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected2 }; 6005yield return new object[] { parent, hScroll, vScroll, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected2 }; 6006yield return new object[] { parent, hScroll, vScroll, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected2 }; 6007yield return new object[] { parent, hScroll, vScroll, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected2 }; 6008yield return new object[] { parent, hScroll, vScroll, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected2 }; 6135yield return new object[] { hScroll, vScroll, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 6136yield return new object[] { hScroll, vScroll, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 6137yield return new object[] { hScroll, vScroll, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 1 }; 6138yield return new object[] { hScroll, vScroll, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 1 }; 6139yield return new object[] { hScroll, vScroll, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 6140yield return new object[] { hScroll, vScroll, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 6142yield return new object[] { hScroll, vScroll, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 6143yield return new object[] { hScroll, vScroll, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 6144yield return new object[] { hScroll, vScroll, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 6145yield return new object[] { hScroll, vScroll, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 6146yield return new object[] { hScroll, vScroll, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 6147yield 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)
248lockedBitmaps[0] = (frames[0].image, frames[0].image.LockBits(bounds, ImageLockMode.ReadOnly, PixelFormat.Format32bppArgb)); 267lockedBitmaps[currentFrameBufferIndex] = (frames[i].image, frames[i].image.LockBits(bounds, ImageLockMode.ReadOnly, PixelFormat.Format32bppArgb));
Infra\ScreenshotService.cs (1)
62Bitmap bitmap = new(width, height, PixelFormat.Format32bppArgb);