99 references to Format32bppRgb
PresentationFramework-SystemDrawing (2)
SystemDrawingExtension.cs (2)
169System.Drawing.Imaging.PixelFormat.Format32bppRgb); 174System.Drawing.Imaging.PixelFormat.Format32bppRgb);
System.Drawing.Common.Tests (56)
mono\System.Drawing.Imaging\BmpCodecTests.cs (5)
384Assert.Equal(PixelFormat.Format32bppRgb, bmp.PixelFormat); 474Save(PixelFormat.Format32bppRgb, PixelFormat.Format32bppRgb, true); 480Save(PixelFormat.Format32bppArgb, PixelFormat.Format32bppRgb, true); 486Save(PixelFormat.Format32bppPArgb, PixelFormat.Format32bppRgb, true);
mono\System.Drawing.Imaging\GifCodecTests.cs (1)
238Save(PixelFormat.Format32bppRgb, PixelFormat.Format8bppIndexed, false);
mono\System.Drawing.Imaging\IconCodecTests.cs (1)
1915Save(PixelFormat.Format32bppRgb, PixelFormat.Format32bppArgb, true);
mono\System.Drawing.Imaging\JpegCodecTests.cs (1)
394Save(PixelFormat.Format32bppRgb, PixelFormat.Format24bppRgb);
mono\System.Drawing.Imaging\PngCodecTests.cs (1)
614Save(PixelFormat.Format32bppRgb, PixelFormat.Format32bppArgb, true);
mono\System.Drawing.Imaging\TiffCodecTests.cs (1)
285Save(PixelFormat.Format32bppRgb, PixelFormat.Format32bppArgb, true);
mono\System.Drawing\BitmapTests.cs (7)
48Bitmap bmp = new(100, 100, PixelFormat.Format32bppRgb); 71using Bitmap bmp = new(100, 100, PixelFormat.Format32bppRgb); 263if (format != PixelFormat.Format32bppRgb) 285public void Format32bppRgb() => FormatTest(PixelFormat.Format32bppRgb); 588byte[] actual = HashLock(bmp, bmp.Width, bmp.Height, PixelFormat.Format32bppRgb, ImageLockMode.ReadWrite); 643byte[] actual = HashLock(bmp, 50, 50, PixelFormat.Format32bppRgb, ImageLockMode.ReadWrite); 674using (Bitmap bmp = new(1, 1, PixelFormat.Format32bppRgb))
System\Drawing\BitmapTests.cs (33)
179[InlineData(1, 1, PixelFormat.Format32bppRgb)] 535yield return new object[] { new Bitmap(100, 100, PixelFormat.Format32bppRgb), 0, 0, Color.FromArgb(0, 0, 0) }; 536yield return new object[] { new Bitmap(100, 100, PixelFormat.Format32bppRgb), 99, 99, Color.FromArgb(0, 0, 0) }; 589yield return new object[] { new Bitmap(1, 1, PixelFormat.Format32bppRgb), 1, 1 }; 606Assert.Equal(PixelFormat.Format32bppRgb, result.PixelFormat); 619Assert.Equal(PixelFormat.Format32bppRgb, result.PixelFormat); 628Assert.Equal(PixelFormat.Format32bppRgb, result.PixelFormat); 689yield return new object[] { new Bitmap(1, 1, PixelFormat.Format32bppRgb).GetHicon(), 1, 1 }; 690yield return new object[] { new Bitmap(32, 32, PixelFormat.Format32bppRgb).GetHicon(), 32, 32 }; 914yield return new object[] { new Bitmap(100, 100, PixelFormat.Format32bppRgb), 0, 0, Color.FromArgb(255, 128, 128, 128) }; 915yield return new object[] { new Bitmap(100, 100, PixelFormat.Format32bppRgb), 99, 99, Color.FromArgb(255, 128, 128, 128) }; 1018yield return new object[] { new Bitmap(100, 100, PixelFormat.Format32bppRgb), new Rectangle(0, 0, 100, 100), ImageLockMode.ReadOnly, PixelFormat.Format32bppRgb, 400, 1 }; 1019yield return new object[] { new Bitmap(100, 100, PixelFormat.Format32bppRgb), new Rectangle(0, 0, 100, 100), ImageLockMode.ReadWrite, PixelFormat.Format32bppRgb, 400, 3 }; 1020yield return new object[] { new Bitmap(100, 100, PixelFormat.Format32bppRgb), new Rectangle(0, 0, 100, 100), ImageLockMode.WriteOnly, PixelFormat.Format32bppRgb, 400, 2 }; 1022yield return new object[] { new Bitmap(100, 100, PixelFormat.Format32bppRgb), new Rectangle(0, 0, 100, 100), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb, 300, 65537 }; 1023yield return new object[] { new Bitmap(100, 100, PixelFormat.Format32bppRgb), new Rectangle(0, 0, 100, 100), ImageLockMode.ReadWrite, PixelFormat.Format24bppRgb, 300, 65539 }; 1024yield return new object[] { new Bitmap(100, 100, PixelFormat.Format32bppRgb), new Rectangle(0, 0, 100, 100), ImageLockMode.WriteOnly, PixelFormat.Format24bppRgb, 300, 65538 }; 1030yield return new object[] { new Bitmap(100, 100, PixelFormat.Format24bppRgb), new Rectangle(0, 0, 100, 100), ImageLockMode.ReadOnly, PixelFormat.Format32bppRgb, 400, 65537 }; 1031yield return new object[] { new Bitmap(100, 100, PixelFormat.Format24bppRgb), new Rectangle(0, 0, 100, 100), ImageLockMode.ReadWrite, PixelFormat.Format32bppRgb, 400, 65539 }; 1032yield return new object[] { new Bitmap(100, 100, PixelFormat.Format24bppRgb), new Rectangle(0, 0, 100, 100), ImageLockMode.WriteOnly, PixelFormat.Format32bppRgb, 400, 65538 }; 1052yield return new object[] { new Bitmap(100, 100, PixelFormat.Format32bppRgb), new Rectangle(0, 0, 100, 100), ImageLockMode.ReadOnly, PixelFormat.Format8bppIndexed, 100, 65537 }; 1053yield return new object[] { new Bitmap(100, 100, PixelFormat.Format32bppRgb), new Rectangle(0, 0, 100, 100), ImageLockMode.ReadWrite, PixelFormat.Format8bppIndexed, 100, 65539 }; 1054yield return new object[] { new Bitmap(100, 100, PixelFormat.Format32bppRgb), new Rectangle(0, 0, 100, 100), ImageLockMode.WriteOnly, PixelFormat.Format8bppIndexed, 100, 65538 }; 1281[InlineData(PixelFormat.Format32bppRgb)] 1396if (format == PixelFormat.Format32bppRgb) 1411if (format == PixelFormat.Format32bppRgb) 1468using (Bitmap bitmap = new(1, 1, PixelFormat.Format32bppRgb)) 1614{ PixelFormat.Format32bppRgb, DitherType.Solid, PaletteType.FixedHalftone8 }, 1621{ PixelFormat.Format32bppRgb, DitherType.None, PaletteType.FixedHalftone256 }, 1672PixelFormat.Format32bppRgb,
System\Drawing\GraphicsTests.cs (3)
244[InlineData(PixelFormat.Format32bppRgb)] 2875[InlineData(PixelFormat.Format16bppRgb555, PixelFormat.Format32bppRgb, false)] 2876[InlineData(PixelFormat.Format32bppRgb, PixelFormat.Format16bppRgb555, true)]
System\Drawing\ImageTests.cs (2)
578[InlineData(PixelFormat.Format32bppRgb, 32)] 598[InlineData(PixelFormat.Format32bppRgb, false)]
System\Drawing\Imaging\BitmapDataTests.cs (1)
93[InlineData(PixelFormat.Format32bppRgb)]
System.Windows.Forms (1)
System\Windows\Forms\Controls\ImageList\ImageList.cs (1)
573if (bmpData.PixelFormat is not PixelFormat.Format32bppArgb and not PixelFormat.Format32bppRgb)
System.Windows.Forms.Tests (40)
System\Windows\Forms\AxHostTests.cs (2)
1625Assert.Equal(PixelFormat.Format32bppRgb, result.PixelFormat); 1690Assert.Equal(PixelFormat.Format32bppRgb, result.PixelFormat);
System\Windows\Forms\ControlPaintTests.cs (14)
14yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppRgb), Color.Empty }; 17yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppRgb), Color.Red }; 20yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppRgb), Color.Transparent }; 23yield return new object[] { new Bitmap(11, 11, PixelFormat.Format32bppRgb), Color.Red }; 26yield return new object[] { new Bitmap(16, 24, PixelFormat.Format32bppRgb), Color.Red }; 90yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppRgb), monochromeMask }; 93yield return new object[] { new Bitmap(16, 24, PixelFormat.Format32bppRgb), monochromeMask }; 96yield return new object[] { new Bitmap(11, 11, PixelFormat.Format32bppRgb), monochromeMask }; 112Assert.Equal(PixelFormat.Format32bppRgb, result.PixelFormat); 144Assert.Equal(PixelFormat.Format32bppRgb, result.PixelFormat); 177Assert.Equal(PixelFormat.Format32bppRgb, result.PixelFormat); 199yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppRgb) }; 202yield return new object[] { new Bitmap(16, 24, PixelFormat.Format32bppRgb) }; 205yield return new object[] { new Bitmap(11, 11, PixelFormat.Format32bppRgb) };
System\Windows\Forms\ControlTests.Handlers.cs (4)
3836foreach (Image backgroundImage in new Image[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb), new Bitmap(10, 10, PixelFormat.Format32bppArgb) }) 3899foreach (Image backgroundImage in new Image[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb) }) 3943foreach (Image backgroundImage in new Image[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb) }) 4071foreach (Image backgroundImage in new Image[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb) })
System\Windows\Forms\ControlTests.Properties.cs (5)
2045yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppRgb), ImageLayout.None, false }; 2046yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppRgb), ImageLayout.Tile, false }; 2047yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppRgb), ImageLayout.Center, false }; 2048yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppRgb), ImageLayout.Stretch, false }; 2049yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppRgb), ImageLayout.Zoom, false };
System\Windows\Forms\ImageList.ImageCollectionTests.cs (4)
52using Bitmap image32bppRGb = new(5, 6, PixelFormat.Format32bppRgb); 100using Bitmap image32bppRGb = new(5, 6, PixelFormat.Format32bppRgb); 144PixelFormat.Format32bppRgb, 168yield return new object[] { PixelFormat.Format32bppRgb, Color.Red, Color.FromArgb(200, 50, 75, 100), Color.FromArgb(255, 50, 75, 100) };
System\Windows\Forms\ScrollableControlTests.cs (4)
1510foreach (Image backgroundImage in new Image[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb), new Bitmap(10, 10, PixelFormat.Format32bppArgb) }) 1582foreach (Image backgroundImage in new Image[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb) }) 1626foreach (Image backgroundImage in new Image[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb) }) 1782foreach (Image backgroundImage in new Image[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb) })
System\Windows\Forms\TabPageTests.cs (3)
3958foreach (Image backgroundImage in new Image[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb), new Bitmap(10, 10, PixelFormat.Format32bppArgb) }) 4012foreach (Image backgroundImage in new Image[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb) }) 4151foreach (Image backgroundImage in new Image[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb) })
System\Windows\Forms\ToolStripTests.cs (4)
5851foreach (Image backgroundImage in new Image[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb), new Bitmap(10, 10, PixelFormat.Format32bppArgb) }) 5924foreach (Image backgroundImage in new Image[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb) }) 5976foreach (Image backgroundImage in new Image[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb) }) 6122foreach (Image backgroundImage in new Image[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb) })