99 references to Format32bppRgb
PresentationFramework-SystemDrawing (2)
SystemDrawingExtension.cs (2)
169
System.Drawing.Imaging.PixelFormat.
Format32bppRgb
);
174
System.Drawing.Imaging.PixelFormat.
Format32bppRgb
);
System.Drawing.Common.Tests (56)
mono\System.Drawing.Imaging\BmpCodecTests.cs (5)
384
Assert.Equal(PixelFormat.
Format32bppRgb
, bmp.PixelFormat);
474
Save(PixelFormat.
Format32bppRgb
, PixelFormat.
Format32bppRgb
, true);
480
Save(PixelFormat.Format32bppArgb, PixelFormat.
Format32bppRgb
, true);
486
Save(PixelFormat.Format32bppPArgb, PixelFormat.
Format32bppRgb
, true);
mono\System.Drawing.Imaging\GifCodecTests.cs (1)
238
Save(PixelFormat.
Format32bppRgb
, PixelFormat.Format8bppIndexed, false);
mono\System.Drawing.Imaging\IconCodecTests.cs (1)
1915
Save(PixelFormat.
Format32bppRgb
, PixelFormat.Format32bppArgb, true);
mono\System.Drawing.Imaging\JpegCodecTests.cs (1)
394
Save(PixelFormat.
Format32bppRgb
, PixelFormat.Format24bppRgb);
mono\System.Drawing.Imaging\PngCodecTests.cs (1)
614
Save(PixelFormat.
Format32bppRgb
, PixelFormat.Format32bppArgb, true);
mono\System.Drawing.Imaging\TiffCodecTests.cs (1)
285
Save(PixelFormat.
Format32bppRgb
, PixelFormat.Format32bppArgb, true);
mono\System.Drawing\BitmapTests.cs (7)
48
Bitmap bmp = new(100, 100, PixelFormat.
Format32bppRgb
);
71
using Bitmap bmp = new(100, 100, PixelFormat.
Format32bppRgb
);
263
if (format != PixelFormat.
Format32bppRgb
)
285
public void Format32bppRgb() => FormatTest(PixelFormat.
Format32bppRgb
);
594
byte[] actual = HashLock(bmp, bmp.Width, bmp.Height, PixelFormat.
Format32bppRgb
, ImageLockMode.ReadWrite);
649
byte[] actual = HashLock(bmp, 50, 50, PixelFormat.
Format32bppRgb
, ImageLockMode.ReadWrite);
680
using (Bitmap bmp = new(1, 1, PixelFormat.
Format32bppRgb
))
System\Drawing\BitmapTests.cs (33)
179
[InlineData(1, 1, PixelFormat.
Format32bppRgb
)]
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) };
589
yield return new object[] { new Bitmap(1, 1, PixelFormat.
Format32bppRgb
), 1, 1 };
606
Assert.Equal(PixelFormat.
Format32bppRgb
, result.PixelFormat);
619
Assert.Equal(PixelFormat.
Format32bppRgb
, result.PixelFormat);
628
Assert.Equal(PixelFormat.
Format32bppRgb
, result.PixelFormat);
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 };
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) };
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 };
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 };
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 };
1281
[InlineData(PixelFormat.
Format32bppRgb
)]
1396
if (format == PixelFormat.
Format32bppRgb
)
1411
if (format == PixelFormat.
Format32bppRgb
)
1468
using (Bitmap bitmap = new(1, 1, PixelFormat.
Format32bppRgb
))
1614
{ PixelFormat.
Format32bppRgb
, DitherType.Solid, PaletteType.FixedHalftone8 },
1621
{ PixelFormat.
Format32bppRgb
, DitherType.None, PaletteType.FixedHalftone256 },
1672
PixelFormat.
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)
573
if (bmpData.PixelFormat is not PixelFormat.Format32bppArgb and not PixelFormat.
Format32bppRgb
)
System.Windows.Forms.Tests (40)
System\Windows\Forms\AxHostTests.cs (2)
1625
Assert.Equal(PixelFormat.
Format32bppRgb
, result.PixelFormat);
1690
Assert.Equal(PixelFormat.
Format32bppRgb
, result.PixelFormat);
System\Windows\Forms\ControlPaintTests.cs (14)
14
yield return new object[] { new Bitmap(10, 10, PixelFormat.
Format32bppRgb
), Color.Empty };
17
yield return new object[] { new Bitmap(10, 10, PixelFormat.
Format32bppRgb
), Color.Red };
20
yield return new object[] { new Bitmap(10, 10, PixelFormat.
Format32bppRgb
), Color.Transparent };
23
yield return new object[] { new Bitmap(11, 11, PixelFormat.
Format32bppRgb
), Color.Red };
26
yield return new object[] { new Bitmap(16, 24, PixelFormat.
Format32bppRgb
), Color.Red };
90
yield return new object[] { new Bitmap(10, 10, PixelFormat.
Format32bppRgb
), monochromeMask };
93
yield return new object[] { new Bitmap(16, 24, PixelFormat.
Format32bppRgb
), monochromeMask };
96
yield return new object[] { new Bitmap(11, 11, PixelFormat.
Format32bppRgb
), monochromeMask };
112
Assert.Equal(PixelFormat.
Format32bppRgb
, result.PixelFormat);
144
Assert.Equal(PixelFormat.
Format32bppRgb
, result.PixelFormat);
177
Assert.Equal(PixelFormat.
Format32bppRgb
, result.PixelFormat);
199
yield return new object[] { new Bitmap(10, 10, PixelFormat.
Format32bppRgb
) };
202
yield return new object[] { new Bitmap(16, 24, PixelFormat.
Format32bppRgb
) };
205
yield return new object[] { new Bitmap(11, 11, PixelFormat.
Format32bppRgb
) };
System\Windows\Forms\ControlTests.Handlers.cs (4)
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
) })
3943
foreach (Image backgroundImage in new Image[] { null, new Bitmap(10, 10, PixelFormat.
Format32bppRgb
) })
4071
foreach (Image backgroundImage in new Image[] { null, new Bitmap(10, 10, PixelFormat.
Format32bppRgb
) })
System\Windows\Forms\ControlTests.Properties.cs (5)
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 (4)
52
using Bitmap image32bppRGb = new(5, 6, PixelFormat.
Format32bppRgb
);
100
using Bitmap image32bppRGb = new(5, 6, PixelFormat.
Format32bppRgb
);
144
PixelFormat.
Format32bppRgb
,
168
yield 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)
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
) })
1626
foreach (Image backgroundImage in new Image[] { null, new Bitmap(10, 10, PixelFormat.
Format32bppRgb
) })
1782
foreach (Image backgroundImage in new Image[] { null, new Bitmap(10, 10, PixelFormat.
Format32bppRgb
) })
System\Windows\Forms\TabPageTests.cs (3)
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
) })
4151
foreach (Image backgroundImage in new Image[] { null, new Bitmap(10, 10, PixelFormat.
Format32bppRgb
) })
System\Windows\Forms\ToolStripTests.cs (4)
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
) })
5976
foreach (Image backgroundImage in new Image[] { null, new Bitmap(10, 10, PixelFormat.
Format32bppRgb
) })
6122
foreach (Image backgroundImage in new Image[] { null, new Bitmap(10, 10, PixelFormat.
Format32bppRgb
) })