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