95 references to Format24bppRgb
System.Drawing.Common.Tests (88)
mono\System.Drawing.Imaging\BmpCodecTests.cs (5)
180Assert.Equal(PixelFormat.Format24bppRgb, bmp.PixelFormat); 242BitmapData data = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb); 247Assert.Equal(PixelFormat.Format24bppRgb, data.PixelFormat); 468Save(PixelFormat.Format24bppRgb, PixelFormat.Format24bppRgb, true);
mono\System.Drawing.Imaging\GifCodecTests.cs (3)
109BitmapData data = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb); 114Assert.Equal(PixelFormat.Format24bppRgb, data.PixelFormat); 232Save(PixelFormat.Format24bppRgb, PixelFormat.Format8bppIndexed, false);
mono\System.Drawing.Imaging\IconCodecTests.cs (12)
132BitmapData data = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb); 137Assert.Equal(PixelFormat.Format24bppRgb, data.PixelFormat); 328BitmapData data = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb); 333Assert.Equal(PixelFormat.Format24bppRgb, data.PixelFormat); 546BitmapData data = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb); 551Assert.Equal(PixelFormat.Format24bppRgb, data.PixelFormat); 750BitmapData data = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb); 755Assert.Equal(PixelFormat.Format24bppRgb, data.PixelFormat); 1525BitmapData data = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb); 1530Assert.Equal(PixelFormat.Format24bppRgb, data.PixelFormat); 1909Save(PixelFormat.Format24bppRgb, PixelFormat.Format24bppRgb, true);
mono\System.Drawing.Imaging\JpegCodecTests.cs (10)
112BitmapData data = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb); 117Assert.Equal(PixelFormat.Format24bppRgb, data.PixelFormat); 174Assert.Equal(PixelFormat.Format24bppRgb, bmp.PixelFormat); 227BitmapData data = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb); 232Assert.Equal(PixelFormat.Format24bppRgb, data.PixelFormat); 388Save(PixelFormat.Format24bppRgb, PixelFormat.Format24bppRgb); 394Save(PixelFormat.Format32bppRgb, PixelFormat.Format24bppRgb); 400Save(PixelFormat.Format32bppArgb, PixelFormat.Format24bppRgb); 406Save(PixelFormat.Format32bppPArgb, PixelFormat.Format24bppRgb);
mono\System.Drawing.Imaging\PngCodecTests.cs (8)
145BitmapData data = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb); 150Assert.Equal(PixelFormat.Format24bppRgb, data.PixelFormat); 297BitmapData data = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb); 302Assert.Equal(PixelFormat.Format24bppRgb, data.PixelFormat); 470BitmapData data = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb); 475Assert.Equal(PixelFormat.Format24bppRgb, data.PixelFormat); 608Save(PixelFormat.Format24bppRgb, PixelFormat.Format24bppRgb, true);
mono\System.Drawing.Imaging\TiffCodecTests.cs (5)
67Assert.Equal(PixelFormat.Format24bppRgb, bmp.PixelFormat); 119BitmapData data = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb); 124Assert.Equal(PixelFormat.Format24bppRgb, data.PixelFormat); 279Save(PixelFormat.Format24bppRgb, PixelFormat.Format24bppRgb, true);
mono\System.Drawing\BitmapTests.cs (14)
64BitmapData bd = bmp.LockBits(rect, ImageLockMode.ReadWrite, PixelFormat.Format24bppRgb); 89using Bitmap bmp = new(10, 10, PixelFormat.Format24bppRgb); 91BitmapData data = bmp.LockBits(r, 0, PixelFormat.Format24bppRgb); 97Assert.Equal(PixelFormat.Format24bppRgb, data.PixelFormat); 109using Bitmap bmp = new(10, 10, PixelFormat.Format24bppRgb); 111BitmapData data = bmp.LockBits(r, ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb); 114Assert.Throws<InvalidOperationException>(() => bmp.LockBits(r, ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb)); 288public void Format24bppRgb() => FormatTest(PixelFormat.Format24bppRgb); 607byte[] actual = HashLock(bmp, bmp.Width, bmp.Height, PixelFormat.Format24bppRgb, ImageLockMode.ReadWrite); 662byte[] actual = HashLock(bmp, 50, 50, PixelFormat.Format24bppRgb, ImageLockMode.ReadWrite); 739data = bmp.LockBits(new Rectangle(0, 0, 1, 1), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb); 759data = bmp.LockBits(new Rectangle(0, 0, 1, 1), ImageLockMode.ReadWrite, PixelFormat.Format24bppRgb); 1271Assert.Equal(PixelFormat.Format24bppRgb, bitmap.PixelFormat); 1297Assert.Equal(PixelFormat.Format24bppRgb, bitmap.PixelFormat);
System\Drawing\BitmapTests.cs (27)
38yield return new object[] { "16x16_nonindexed_24bit.png", 16, 16, PixelFormat.Format24bppRgb, ImageFormat.Png }; 178[InlineData(1, 1, PixelFormat.Format24bppRgb)] 199yield return new object[] { 5, 15, int.MinValue, PixelFormat.Format24bppRgb, IntPtr.Zero }; 271yield return new object[] { new Bitmap(1, 1, PixelFormat.Format24bppRgb), 1, 1 }; 360yield return new object[] { new Bitmap(3, 3, PixelFormat.Format32bppArgb), new Rectangle(0, 0, 3, 3), PixelFormat.Format24bppRgb }; 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 }; 1026yield return new object[] { new Bitmap(100, 100, PixelFormat.Format24bppRgb), new Rectangle(0, 0, 100, 100), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb, 300, 1 }; 1027yield return new object[] { new Bitmap(100, 100, PixelFormat.Format24bppRgb), new Rectangle(0, 0, 100, 100), ImageLockMode.ReadWrite, PixelFormat.Format24bppRgb, 300, 3 }; 1028yield return new object[] { new Bitmap(100, 100, PixelFormat.Format24bppRgb), new Rectangle(0, 0, 100, 100), ImageLockMode.WriteOnly, PixelFormat.Format24bppRgb, 300, 2 }; 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 }; 1034yield return new object[] { new Bitmap(100, 100, PixelFormat.Format8bppIndexed), new Rectangle(0, 0, 100, 100), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb, 300, 65537 }; 1056yield return new object[] { new Bitmap(100, 100, PixelFormat.Format8bppIndexed), new Rectangle(0, 0, 100, 100), ImageLockMode.ReadWrite, PixelFormat.Format24bppRgb, 300, 65539 }; 1057yield return new object[] { new Bitmap(100, 100, PixelFormat.Format8bppIndexed), new Rectangle(0, 0, 100, 100), ImageLockMode.WriteOnly, PixelFormat.Format24bppRgb, 300, 65538 }; 1095AssertExtensions.Throws<ArgumentNullException>("bitmapData", () => bitmap.LockBits(Rectangle.Empty, ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb, null)); 1282[InlineData(PixelFormat.Format24bppRgb)] 1527BitmapData data = bitmap.LockBits(new Rectangle(0, 0, 1, 1), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb); 1546data = bitmap.LockBits(new Rectangle(0, 0, 1, 1), ImageLockMode.ReadWrite, PixelFormat.Format24bppRgb); 1611{ PixelFormat.Format24bppRgb, DitherType.Ordered4x4, PaletteType.FixedHalftone8 }, 1618{ PixelFormat.Format24bppRgb, DitherType.None, PaletteType.FixedHalftone256 }, 1669PixelFormat.Format24bppRgb,
System\Drawing\GraphicsTests.cs (1)
241[InlineData(PixelFormat.Format24bppRgb)]
System\Drawing\ImageTests.cs (2)
575[InlineData(PixelFormat.Format24bppRgb, 24)] 597[InlineData(PixelFormat.Format24bppRgb, false)]
System\Drawing\Imaging\BitmapDataTests.cs (1)
92[InlineData(PixelFormat.Format24bppRgb)]
System.Windows.Forms.Tests (7)
System\Windows\Forms\ImageList.ImageCollectionTests.cs (7)
50using Bitmap image1bppIndexed = new(1, 2, PixelFormat.Format24bppRgb); 51using Bitmap image24bppRGb = new(3, 4, PixelFormat.Format24bppRgb); 98using Bitmap image1bppIndexed = new(1, 2, PixelFormat.Format24bppRgb); 99using Bitmap image24bppRGb = new(3, 4, PixelFormat.Format24bppRgb); 143PixelFormat.Format24bppRgb, 154yield return new object[] { PixelFormat.Format24bppRgb, Color.Red, Color.FromArgb(200, 50, 75, 100) }; 167yield return new object[] { PixelFormat.Format24bppRgb, Color.Red, Color.FromArgb(200, 50, 75, 100), Color.FromArgb(255, 50, 75, 100) };