44 references to Format1bppIndexed
System.Drawing.Common.Tests (29)
mono\System.Drawing.Imaging\PngCodecTests.cs (1)
47Assert.Equal(PixelFormat.Format1bppIndexed, bmp.PixelFormat);
mono\System.Drawing\BitmapTests.cs (6)
125using Bitmap bmp = new(1, 1, PixelFormat.Format1bppIndexed); 397PixelFormat.Format1bppIndexed => 8, 797Bitmap bmp = new(184, 184, PixelFormat.Format1bppIndexed); 798BitmapData data = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), ImageLockMode.ReadWrite, PixelFormat.Format1bppIndexed); 819using Bitmap bmp = new(1, 1, PixelFormat.Format1bppIndexed); 1169public void BitmapIntIntIntPixelFormatIntPtrCtor() => new Bitmap(1, 1, 1, PixelFormat.Format1bppIndexed, nint.Zero);
System\Drawing\BitmapTests.cs (18)
172[InlineData(10, 10, PixelFormat.Format1bppIndexed)] 200yield return new object[] { 1, 1, 1, PixelFormat.Format1bppIndexed, IntPtr.Zero }; 361yield return new object[] { new Bitmap(3, 3, PixelFormat.Format1bppIndexed), new Rectangle(1, 1, 1, 1), PixelFormat.Format64bppArgb }; 532yield return new object[] { new Bitmap(1, 1, PixelFormat.Format1bppIndexed), 0, 0, Color.FromArgb(0, 0, 0) }; 927[InlineData(PixelFormat.Format1bppIndexed)] 1040yield return new object[] { new Bitmap(184, 184, PixelFormat.Format1bppIndexed), new Rectangle(0, 0, 184, 184), ImageLockMode.ReadOnly, PixelFormat.Format1bppIndexed, 24, 1 }; 1041yield return new object[] { new Bitmap(184, 184, PixelFormat.Format1bppIndexed), new Rectangle(0, 0, 184, 184), ImageLockMode.ReadWrite, PixelFormat.Format1bppIndexed, 24, 3 }; 1042yield 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 }, 1677PixelFormat.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)
13yield return new object[] { new Bitmap(10, 10, PixelFormat.Format1bppIndexed), Color.Empty }; 16yield return new object[] { new Bitmap(10, 10, PixelFormat.Format1bppIndexed), Color.Red }; 19yield return new object[] { new Bitmap(10, 10, PixelFormat.Format1bppIndexed), Color.Transparent }; 22yield return new object[] { new Bitmap(11, 11, PixelFormat.Format1bppIndexed), Color.Red }; 25yield return new object[] { new Bitmap(16, 24, PixelFormat.Format1bppIndexed), Color.Red }; 89yield return new object[] { new Bitmap(10, 10, PixelFormat.Format1bppIndexed), monochromeMask }; 92yield return new object[] { new Bitmap(16, 24, PixelFormat.Format1bppIndexed), monochromeMask }; 95yield return new object[] { new Bitmap(11, 11, PixelFormat.Format1bppIndexed), monochromeMask }; 198yield return new object[] { new Bitmap(10, 10, PixelFormat.Format1bppIndexed) }; 201yield return new object[] { new Bitmap(16, 24, PixelFormat.Format1bppIndexed) }; 204yield return new object[] { new Bitmap(11, 11, PixelFormat.Format1bppIndexed) }; 220Assert.Equal(PixelFormat.Format1bppIndexed, result.PixelFormat); 245Assert.Equal(PixelFormat.Format1bppIndexed, result.PixelFormat);
System\Windows\Forms\ImageList.ImageCollectionTests.cs (2)
142PixelFormat.Format1bppIndexed, 161yield return new object[] { PixelFormat.Format1bppIndexed, Color.Empty, Color.Empty, Color.FromArgb(255, 0, 0, 0) };