44 references to Format1bppIndexed
System.Drawing.Common.Tests (29)
mono\System.Drawing.Imaging\PngCodecTests.cs (1)
47
Assert.Equal(PixelFormat.
Format1bppIndexed
, bmp.PixelFormat);
mono\System.Drawing\BitmapTests.cs (6)
125
using Bitmap bmp = new(1, 1, PixelFormat.
Format1bppIndexed
);
397
PixelFormat.
Format1bppIndexed
=> 8,
797
Bitmap bmp = new(184, 184, PixelFormat.
Format1bppIndexed
);
798
BitmapData data = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), ImageLockMode.ReadWrite, PixelFormat.
Format1bppIndexed
);
819
using Bitmap bmp = new(1, 1, PixelFormat.
Format1bppIndexed
);
1169
public void BitmapIntIntIntPixelFormatIntPtrCtor() => new Bitmap(1, 1, 1, PixelFormat.
Format1bppIndexed
, nint.Zero);
System\Drawing\BitmapTests.cs (18)
172
[InlineData(10, 10, PixelFormat.
Format1bppIndexed
)]
200
yield return new object[] { 1, 1, 1, PixelFormat.
Format1bppIndexed
, IntPtr.Zero };
361
yield return new object[] { new Bitmap(3, 3, PixelFormat.
Format1bppIndexed
), new Rectangle(1, 1, 1, 1), PixelFormat.Format64bppArgb };
532
yield return new object[] { new Bitmap(1, 1, PixelFormat.
Format1bppIndexed
), 0, 0, Color.FromArgb(0, 0, 0) };
927
[InlineData(PixelFormat.
Format1bppIndexed
)]
1040
yield return new object[] { new Bitmap(184, 184, PixelFormat.
Format1bppIndexed
), new Rectangle(0, 0, 184, 184), ImageLockMode.ReadOnly, PixelFormat.
Format1bppIndexed
, 24, 1 };
1041
yield return new object[] { new Bitmap(184, 184, PixelFormat.
Format1bppIndexed
), new Rectangle(0, 0, 184, 184), ImageLockMode.ReadWrite, PixelFormat.
Format1bppIndexed
, 24, 3 };
1042
yield return new object[] { new Bitmap(184, 184, PixelFormat.
Format1bppIndexed
), new Rectangle(0, 0, 184, 184), ImageLockMode.WriteOnly, PixelFormat.
Format1bppIndexed
, 24, 2 };
1430
{ PixelFormat.
Format1bppIndexed
, new int[] { -16777216, -1 } },
1628
{ PixelFormat.
Format1bppIndexed
, (DitherType)(-1), PaletteType.FixedHalftone256 },
1629
{ PixelFormat.
Format1bppIndexed
, DitherType.None, (PaletteType)(-1) },
1630
{ PixelFormat.
Format1bppIndexed
, (DitherType)(-1), (PaletteType)(-1) },
1631
{ PixelFormat.
Format1bppIndexed
, DitherType.None, PaletteType.FixedHalftone256 },
1632
{ PixelFormat.
Format1bppIndexed
, DitherType.ErrorDiffusion, PaletteType.FixedHalftone8 },
1677
PixelFormat.
Format1bppIndexed
,
System\Drawing\GraphicsTests.cs (1)
262
[InlineData(PixelFormat.
Format1bppIndexed
)]
System\Drawing\ImageTests.cs (2)
568
[InlineData(PixelFormat.
Format1bppIndexed
, 1)]
596
[InlineData(PixelFormat.
Format1bppIndexed
, false)]
System\Drawing\Imaging\BitmapDataTests.cs (1)
94
[InlineData(PixelFormat.
Format1bppIndexed
)]
System.Windows.Forms.Tests (15)
System\Windows\Forms\ControlPaintTests.cs (13)
13
yield return new object[] { new Bitmap(10, 10, PixelFormat.
Format1bppIndexed
), Color.Empty };
16
yield return new object[] { new Bitmap(10, 10, PixelFormat.
Format1bppIndexed
), Color.Red };
19
yield return new object[] { new Bitmap(10, 10, PixelFormat.
Format1bppIndexed
), Color.Transparent };
22
yield return new object[] { new Bitmap(11, 11, PixelFormat.
Format1bppIndexed
), Color.Red };
25
yield return new object[] { new Bitmap(16, 24, PixelFormat.
Format1bppIndexed
), Color.Red };
89
yield return new object[] { new Bitmap(10, 10, PixelFormat.
Format1bppIndexed
), monochromeMask };
92
yield return new object[] { new Bitmap(16, 24, PixelFormat.
Format1bppIndexed
), monochromeMask };
95
yield return new object[] { new Bitmap(11, 11, PixelFormat.
Format1bppIndexed
), monochromeMask };
198
yield return new object[] { new Bitmap(10, 10, PixelFormat.
Format1bppIndexed
) };
201
yield return new object[] { new Bitmap(16, 24, PixelFormat.
Format1bppIndexed
) };
204
yield return new object[] { new Bitmap(11, 11, PixelFormat.
Format1bppIndexed
) };
220
Assert.Equal(PixelFormat.
Format1bppIndexed
, result.PixelFormat);
245
Assert.Equal(PixelFormat.
Format1bppIndexed
, result.PixelFormat);
System\Windows\Forms\ImageList.ImageCollectionTests.cs (2)
142
PixelFormat.
Format1bppIndexed
,
161
yield return new object[] { PixelFormat.
Format1bppIndexed
, Color.Empty, Color.Empty, Color.FromArgb(255, 0, 0, 0) };