20 instantiations of BitmapData
System.Drawing.Common.Tests (20)
mono\System.Drawing\BitmapTests.cs (1)
72
BitmapData bd =
new
();
System\Drawing\BitmapTests.cs (11)
1115
BitmapData bitmapData =
new
();
1136
BitmapData bitmapData =
new
();
1147
AssertExtensions.Throws<ArgumentException>(null, () => bitmap.LockBits(new Rectangle(0, 0, 1, 1), ImageLockMode.ReadOnly, PixelFormat.Format16bppGrayScale, new
BitmapData
()));
1150
AssertExtensions.Throws<ArgumentException>(null, () => bitmap.LockBits(new Rectangle(0, 0, 1, 1), ImageLockMode.ReadWrite, PixelFormat.Format16bppGrayScale, new
BitmapData
()));
1165
BitmapData bitmapData =
new
();
1177
BitmapData bitmapData =
new
();
1189
Assert.Throws<InvalidOperationException>(() => bitmap.LockBits(new Rectangle(0, 0, 1, 1), ImageLockMode.ReadOnly, bitmap.PixelFormat, new
BitmapData
()));
1192
Assert.Throws<InvalidOperationException>(() => bitmap.LockBits(new Rectangle(1, 1, 1, 1), ImageLockMode.ReadOnly, bitmap.PixelFormat, new
BitmapData
()));
1242
Assert.Throws<ExternalException>(() => bitmap.UnlockBits(new
BitmapData
()));
1252
Assert.Throws<ExternalException>(() => bitmap.UnlockBits(new
BitmapData
()));
1261
AssertExtensions.Throws<ArgumentException>(null, () => bitmap.UnlockBits(new
BitmapData
()));
System\Drawing\Imaging\BitmapDataTests.cs (8)
11
BitmapData bd =
new
();
26
BitmapData bd =
new
()
39
BitmapData bd =
new
()
52
BitmapData bd =
new
()
65
BitmapData bd =
new
()
78
BitmapData bd =
new
()
110
BitmapData bd =
new
()
120
BitmapData bd =
new
();
63 references to BitmapData
PresentationFramework-SystemDrawing (1)
SystemDrawingExtension.cs (1)
171
BitmapData
bmData = bitmapFinal.LockBits(
System.Drawing (1)
System.Drawing.cs (1)
69
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.Imaging.
BitmapData
))]
System.Drawing.Common (4)
Special\NotSupported.cs (4)
38
public System.Drawing.Imaging.
BitmapData
LockBits(System.Drawing.Rectangle rect, System.Drawing.Imaging.ImageLockMode flags, System.Drawing.Imaging.PixelFormat format) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
39
public System.Drawing.Imaging.
BitmapData
LockBits(System.Drawing.Rectangle rect, System.Drawing.Imaging.ImageLockMode flags, System.Drawing.Imaging.PixelFormat format, System.Drawing.Imaging.
BitmapData
bitmapData) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
44
public void UnlockBits(System.Drawing.Imaging.
BitmapData
bitmapdata) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
System.Drawing.Common.Tests (46)
DrawingTest.cs (1)
14
BitmapData
data = bitmap.LockBits(new Rectangle(default, bitmap.Size), ImageLockMode.ReadWrite, bitmap.PixelFormat);
mono\System.Drawing.Imaging\BmpCodecTests.cs (1)
242
BitmapData
data = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb);
mono\System.Drawing.Imaging\GifCodecTests.cs (1)
109
BitmapData
data = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb);
mono\System.Drawing.Imaging\IconCodecTests.cs (5)
132
BitmapData
data = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb);
328
BitmapData
data = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb);
546
BitmapData
data = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb);
750
BitmapData
data = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb);
1525
BitmapData
data = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb);
mono\System.Drawing.Imaging\JpegCodecTests.cs (2)
112
BitmapData
data = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb);
227
BitmapData
data = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb);
mono\System.Drawing.Imaging\PngCodecTests.cs (3)
145
BitmapData
data = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb);
297
BitmapData
data = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb);
470
BitmapData
data = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb);
mono\System.Drawing.Imaging\TiffCodecTests.cs (1)
119
BitmapData
data = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb);
mono\System.Drawing\BitmapTests.cs (9)
64
BitmapData
bd = bmp.LockBits(rect, ImageLockMode.ReadWrite, PixelFormat.Format24bppRgb);
72
BitmapData
bd = new();
91
BitmapData
data = bmp.LockBits(r, 0, PixelFormat.Format24bppRgb);
111
BitmapData
data = bmp.LockBits(r, ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb);
216
BitmapData
bd = bmp.LockBits(new Rectangle(0, 0, 2, 1), ImageLockMode.ReadOnly, format);
409
BitmapData
data = null;
510
BitmapData
bd = bmp.LockBits(new Rectangle(0, 0, width, height), mode, fmt);
673
BitmapData
data;
804
BitmapData
data = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), ImageLockMode.ReadWrite, PixelFormat.Format1bppIndexed);
System\Drawing\BitmapTests.cs (13)
1066
BitmapData
data = bitmap.LockBits(rectangle, lockMode, pixelFormat);
1115
BitmapData
bitmapData = new();
1136
BitmapData
bitmapData = new();
1152
BitmapData
data = bitmap.LockBits(new Rectangle(0, 0, 1, 1), ImageLockMode.WriteOnly, PixelFormat.Format16bppGrayScale);
1165
BitmapData
bitmapData = new();
1177
BitmapData
bitmapData = new();
1202
BitmapData
data = bitmap.LockBits(new Rectangle(offset, offset, 1, 1), ImageLockMode.ReadOnly, bitmap.PixelFormat);
1213
BitmapData
data = bitmap.LockBits(new Rectangle(0, 0, 1, 1), ImageLockMode.ReadOnly, bitmap.PixelFormat);
1225
BitmapData
data = bitmap.LockBits(new Rectangle(0, 0, 1, 1), ImageLockMode.ReadOnly, bitmap.PixelFormat);
1249
BitmapData
data = bitmap.LockBits(new Rectangle(0, 0, 1, 1), ImageLockMode.ReadOnly, bitmap.PixelFormat);
1348
BitmapData
bitmapData = bitmap.LockBits(new Rectangle(0, 0, 2, 1), ImageLockMode.ReadOnly, format);
1474
BitmapData
data = bitmap.LockBits(new Rectangle(0, 0, 1, 1), ImageLockMode.ReadOnly, PixelFormat.Format32bppArgb);
1527
BitmapData
data = bitmap.LockBits(new Rectangle(0, 0, 1, 1), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb);
System\Drawing\GraphicsTests.cs (2)
2903
BitmapData
data = bitmap.LockBits(default, ImageLockMode.ReadOnly, PixelFormat.Format32bppArgb);
2917
BitmapData
data = bitmap.LockBits(default, ImageLockMode.ReadOnly, PixelFormat.Format32bppArgb);
System\Drawing\Imaging\BitmapDataTests.cs (8)
11
BitmapData
bd = new();
26
BitmapData
bd = new()
39
BitmapData
bd = new()
52
BitmapData
bd = new()
65
BitmapData
bd = new()
78
BitmapData
bd = new()
110
BitmapData
bd = new()
120
BitmapData
bd = new();
System.Windows.Forms (6)
System\Windows\Forms\Controls\ImageList\ImageList.cs (5)
549
private static unsafe void CopyBitmapData(
BitmapData
sourceData,
BitmapData
targetData)
571
private static unsafe bool BitmapHasAlpha(
BitmapData
bmpData)
619
BitmapData
? bmpData = null;
620
BitmapData
? targetData = null;
System\Windows\Forms\Rendering\ControlPaint.cs (1)
267
BitmapData
data = bitmap.LockBits(
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\DesignerUtils.cs (1)
671
BitmapData
data = b.LockBits(new Rectangle(0, 0, b.Width, b.Height), ImageLockMode.ReadWrite, PixelFormat.Format32bppArgb);
System.Windows.Forms.Tests (2)
System\Windows\Forms\DataObject_BitmapBinderTests.cs (2)
69
BitmapData
originalData = bitmap.LockBits(default, ImageLockMode.ReadOnly, PixelFormat.Format32bppArgb);
70
BitmapData
deserializedData = deserializedBitmap.LockBits(default, ImageLockMode.ReadOnly, PixelFormat.Format32bppArgb);
System.Windows.Forms.UI.IntegrationTests (2)
Infra\ScreenRecordService.cs (2)
244
var lockedBitmaps = new (Bitmap image,
BitmapData
data)[2];
332
foreach ((Bitmap image,
BitmapData
data) in lockedBitmaps)