14 references to WriteOnly
PresentationFramework-SystemDrawing (1)
SystemDrawingExtension.cs (1)
173
ImageLockMode.
WriteOnly
,
System.Drawing.Common.Tests (12)
System\Drawing\BitmapTests.cs (12)
1016
yield return new object[] { bitmap(), new Rectangle(0, 0, 2, 2), ImageLockMode.
WriteOnly
, PixelFormat.Format32bppArgb, 8, 2 };
1020
yield return new object[] { new Bitmap(100, 100, PixelFormat.Format32bppRgb), new Rectangle(0, 0, 100, 100), ImageLockMode.
WriteOnly
, PixelFormat.Format32bppRgb, 400, 2 };
1024
yield return new object[] { new Bitmap(100, 100, PixelFormat.Format32bppRgb), new Rectangle(0, 0, 100, 100), ImageLockMode.
WriteOnly
, PixelFormat.Format24bppRgb, 300, 65538 };
1028
yield return new object[] { new Bitmap(100, 100, PixelFormat.Format24bppRgb), new Rectangle(0, 0, 100, 100), ImageLockMode.
WriteOnly
, PixelFormat.Format24bppRgb, 300, 2 };
1032
yield return new object[] { new Bitmap(100, 100, PixelFormat.Format24bppRgb), new Rectangle(0, 0, 100, 100), ImageLockMode.
WriteOnly
, PixelFormat.Format32bppRgb, 400, 65538 };
1038
yield return new object[] { new Bitmap(100, 100, PixelFormat.Format8bppIndexed), new Rectangle(0, 0, 100, 100), ImageLockMode.
WriteOnly
, PixelFormat.Format8bppIndexed, 100, 2 };
1042
yield return new object[] { new Bitmap(184, 184, PixelFormat.Format1bppIndexed), new Rectangle(0, 0, 184, 184), ImageLockMode.
WriteOnly
, PixelFormat.Format1bppIndexed, 24, 2 };
1046
yield return new object[] { bitmap(), new Rectangle(1, 1, 1, 1), ImageLockMode.
WriteOnly
, PixelFormat.Format32bppArgb, 8, 2 };
1050
yield return new object[] { bitmap(), new Rectangle(0, 0, 2, 2), ImageLockMode.
WriteOnly
, PixelFormat.Format16bppGrayScale, 4, 65538 };
1054
yield return new object[] { new Bitmap(100, 100, PixelFormat.Format32bppRgb), new Rectangle(0, 0, 100, 100), ImageLockMode.
WriteOnly
, PixelFormat.Format8bppIndexed, 100, 65538 };
1057
yield return new object[] { new Bitmap(100, 100, PixelFormat.Format8bppIndexed), new Rectangle(0, 0, 100, 100), ImageLockMode.
WriteOnly
, PixelFormat.Format24bppRgb, 300, 65538 };
1152
BitmapData data = bitmap.LockBits(new Rectangle(0, 0, 1, 1), ImageLockMode.
WriteOnly
, PixelFormat.Format16bppGrayScale);
System.Windows.Forms (1)
System\Windows\Forms\Controls\ImageList\ImageList.cs (1)
632
targetData = result.LockBits(new Rectangle(0, 0, _imageSize.Width, _imageSize.Height), ImageLockMode.
WriteOnly
, PixelFormat.Format32bppArgb);