23 references to Format16bppGrayScale
System.Drawing.Common.Tests (23)
System\Drawing\BitmapTests.cs (19)
177
[InlineData(1, 1, PixelFormat.
Format16bppGrayScale
)]
451
[InlineData(PixelFormat.
Format16bppGrayScale
)]
463
using Bitmap bitmap = new(1, 1, PixelFormat.
Format16bppGrayScale
);
574
using Bitmap bitmap = new(1, 1, PixelFormat.
Format16bppGrayScale
);
639
using Bitmap bitmap = new(width, height, PixelFormat.
Format16bppGrayScale
);
712
using Bitmap bitmap = new(1, 1, PixelFormat.
Format16bppGrayScale
);
892
using Bitmap bitmap = new(1, 1, PixelFormat.
Format16bppGrayScale
);
957
using Bitmap bitmap = new(1, 1, PixelFormat.
Format16bppGrayScale
);
1050
yield return new object[] { bitmap(), new Rectangle(0, 0, 2, 2), ImageLockMode.WriteOnly, PixelFormat.
Format16bppGrayScale
, 4, 65538 };
1076
if (pixelFormat == PixelFormat.
Format16bppGrayScale
)
1146
AssertExtensions.Throws<ArgumentException>(null, () => bitmap.LockBits(new Rectangle(0, 0, 1, 1), ImageLockMode.ReadOnly, PixelFormat.
Format16bppGrayScale
));
1147
AssertExtensions.Throws<ArgumentException>(null, () => bitmap.LockBits(new Rectangle(0, 0, 1, 1), ImageLockMode.ReadOnly, PixelFormat.
Format16bppGrayScale
, new BitmapData()));
1149
AssertExtensions.Throws<ArgumentException>(null, () => bitmap.LockBits(new Rectangle(0, 0, 1, 1), ImageLockMode.ReadWrite, PixelFormat.
Format16bppGrayScale
));
1150
AssertExtensions.Throws<ArgumentException>(null, () => bitmap.LockBits(new Rectangle(0, 0, 1, 1), ImageLockMode.ReadWrite, PixelFormat.
Format16bppGrayScale
, new BitmapData()));
1152
BitmapData 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
)]