23 references to Format16bppGrayScale
System.Drawing.Common.Tests (23)
System\Drawing\BitmapTests.cs (19)
176
[InlineData(1, 1, PixelFormat.
Format16bppGrayScale
)]
450
[InlineData(PixelFormat.
Format16bppGrayScale
)]
462
using Bitmap bitmap = new(1, 1, PixelFormat.
Format16bppGrayScale
);
573
using Bitmap bitmap = new(1, 1, PixelFormat.
Format16bppGrayScale
);
638
using Bitmap bitmap = new(width, height, PixelFormat.
Format16bppGrayScale
);
711
using Bitmap bitmap = new(1, 1, PixelFormat.
Format16bppGrayScale
);
891
using Bitmap bitmap = new(1, 1, PixelFormat.
Format16bppGrayScale
);
956
using Bitmap bitmap = new(1, 1, PixelFormat.
Format16bppGrayScale
);
1049
yield return new object[] { bitmap(), new Rectangle(0, 0, 2, 2), ImageLockMode.WriteOnly, PixelFormat.
Format16bppGrayScale
, 4, 65538 };
1075
if (pixelFormat == PixelFormat.
Format16bppGrayScale
)
1145
AssertExtensions.Throws<ArgumentException>(null, () => bitmap.LockBits(new Rectangle(0, 0, 1, 1), ImageLockMode.ReadOnly, PixelFormat.
Format16bppGrayScale
));
1146
AssertExtensions.Throws<ArgumentException>(null, () => bitmap.LockBits(new Rectangle(0, 0, 1, 1), ImageLockMode.ReadOnly, PixelFormat.
Format16bppGrayScale
, new BitmapData()));
1148
AssertExtensions.Throws<ArgumentException>(null, () => bitmap.LockBits(new Rectangle(0, 0, 1, 1), ImageLockMode.ReadWrite, PixelFormat.
Format16bppGrayScale
));
1149
AssertExtensions.Throws<ArgumentException>(null, () => bitmap.LockBits(new Rectangle(0, 0, 1, 1), ImageLockMode.ReadWrite, PixelFormat.
Format16bppGrayScale
, new BitmapData()));
1151
BitmapData data = bitmap.LockBits(new Rectangle(0, 0, 1, 1), ImageLockMode.WriteOnly, PixelFormat.
Format16bppGrayScale
);
1638
{ PixelFormat.
Format16bppGrayScale
, DitherType.None, PaletteType.FixedHalftone256 },
1639
{ PixelFormat.
Format16bppGrayScale
, DitherType.ErrorDiffusion, PaletteType.FixedHalftone8 },
1640
{ PixelFormat.
Format16bppGrayScale
, DitherType.None, PaletteType.FixedBlackAndWhite },
1641
{ PixelFormat.
Format16bppGrayScale
, DitherType.Solid, PaletteType.FixedBlackAndWhite },
System\Drawing\GraphicsTests.cs (1)
292
[InlineData(PixelFormat.
Format16bppGrayScale
)]
System\Drawing\ImageTests.cs (2)
574
[InlineData(PixelFormat.
Format16bppGrayScale
, 16)]
595
[InlineData(PixelFormat.
Format16bppGrayScale
, false)]
System\Drawing\Imaging\BitmapDataTests.cs (1)
102
[InlineData(PixelFormat.
Format16bppGrayScale
)]