23 references to Format16bppGrayScale
System.Drawing.Common.Tests (23)
System\Drawing\BitmapTests.cs (19)
177[InlineData(1, 1, PixelFormat.Format16bppGrayScale)] 451[InlineData(PixelFormat.Format16bppGrayScale)] 463using Bitmap bitmap = new(1, 1, PixelFormat.Format16bppGrayScale); 574using Bitmap bitmap = new(1, 1, PixelFormat.Format16bppGrayScale); 639using Bitmap bitmap = new(width, height, PixelFormat.Format16bppGrayScale); 712using Bitmap bitmap = new(1, 1, PixelFormat.Format16bppGrayScale); 892using Bitmap bitmap = new(1, 1, PixelFormat.Format16bppGrayScale); 957using Bitmap bitmap = new(1, 1, PixelFormat.Format16bppGrayScale); 1050yield return new object[] { bitmap(), new Rectangle(0, 0, 2, 2), ImageLockMode.WriteOnly, PixelFormat.Format16bppGrayScale, 4, 65538 }; 1076if (pixelFormat == PixelFormat.Format16bppGrayScale) 1146AssertExtensions.Throws<ArgumentException>(null, () => bitmap.LockBits(new Rectangle(0, 0, 1, 1), ImageLockMode.ReadOnly, PixelFormat.Format16bppGrayScale)); 1147AssertExtensions.Throws<ArgumentException>(null, () => bitmap.LockBits(new Rectangle(0, 0, 1, 1), ImageLockMode.ReadOnly, PixelFormat.Format16bppGrayScale, new BitmapData())); 1149AssertExtensions.Throws<ArgumentException>(null, () => bitmap.LockBits(new Rectangle(0, 0, 1, 1), ImageLockMode.ReadWrite, PixelFormat.Format16bppGrayScale)); 1150AssertExtensions.Throws<ArgumentException>(null, () => bitmap.LockBits(new Rectangle(0, 0, 1, 1), ImageLockMode.ReadWrite, PixelFormat.Format16bppGrayScale, new BitmapData())); 1152BitmapData data = bitmap.LockBits(new Rectangle(0, 0, 1, 1), ImageLockMode.WriteOnly, PixelFormat.Format16bppGrayScale); 1639{ PixelFormat.Format16bppGrayScale, DitherType.None, PaletteType.FixedHalftone256 }, 1640{ PixelFormat.Format16bppGrayScale, DitherType.ErrorDiffusion, PaletteType.FixedHalftone8 }, 1641{ PixelFormat.Format16bppGrayScale, DitherType.None, PaletteType.FixedBlackAndWhite }, 1642{ PixelFormat.Format16bppGrayScale, DitherType.Solid, PaletteType.FixedBlackAndWhite },
System\Drawing\GraphicsTests.cs (1)
291[InlineData(PixelFormat.Format16bppGrayScale)]
System\Drawing\ImageTests.cs (2)
572[InlineData(PixelFormat.Format16bppGrayScale, 16)] 593[InlineData(PixelFormat.Format16bppGrayScale, false)]
System\Drawing\Imaging\BitmapDataTests.cs (1)
102[InlineData(PixelFormat.Format16bppGrayScale)]