158 references to SetPixel
System.Drawing.Common.Tests (85)
mono\System.Drawing\BitmapTests.cs (17)
49
bmp.
SetPixel
(0, 0, Color.FromArgb(255, 128, 128, 128));
54
bmp.
SetPixel
(99, 99, Color.FromArgb(255, 255, 0, 155));
128
Assert.Throws<InvalidOperationException>(() => bmp.
SetPixel
(0, 0, c));
137
Assert.Throws<InvalidOperationException>(() => bmp.
SetPixel
(0, 0, c));
146
Assert.Throws<InvalidOperationException>(() => bmp.
SetPixel
(0, 0, c));
156
bmp.
SetPixel
(0, 0, a);
157
bmp.
SetPixel
(1, 0, b);
462
bmp.
SetPixel
(x, 1, c);
463
bmp.
SetPixel
(x, 2, c);
464
bmp.
SetPixel
(x, 78, c);
465
bmp.
SetPixel
(x, 79, c);
470
bmp.
SetPixel
(1, y, c);
471
bmp.
SetPixel
(2, y, c);
472
bmp.
SetPixel
(78, y, c);
473
bmp.
SetPixel
(79, y, c);
676
bmp.
SetPixel
(0, 0, red);
731
bmp.
SetPixel
(0, 0, red);
System\Drawing\BitmapTests.cs (15)
795
bitmap.
SetPixel
(x, y, Color.LightGray);
799
bitmap.
SetPixel
(x, y, Color.Red);
831
bitmap.
SetPixel
(x, y, Color.Blue);
835
bitmap.
SetPixel
(x, y, Color.Red);
865
bitmap.
SetPixel
(x, y, Color.Blue);
922
bitmap.
SetPixel
(x, y, color);
933
Assert.Throws<InvalidOperationException>(() => bitmap.
SetPixel
(0, 0, Color.Red));
942
AssertExtensions.Throws<ArgumentOutOfRangeException>("x", () => bitmap.
SetPixel
(x, 0, Color.Red));
951
AssertExtensions.Throws<ArgumentOutOfRangeException>("y", () => bitmap.
SetPixel
(0, y, Color.Red));
958
AssertExtensions.Throws<ArgumentException>(null, () => bitmap.
SetPixel
(0, 0, Color.Red));
967
AssertExtensions.Throws<ArgumentException>(null, () => bitmap.
SetPixel
(0, 0, Color.Red));
1290
bitmap.
SetPixel
(0, 0, a);
1291
bitmap.
SetPixel
(1, 0, b);
1470
bitmap.
SetPixel
(0, 0, red);
1525
bitmap.
SetPixel
(0, 0, red);
System\Drawing\GraphicsTests.cs (1)
1541
image.
SetPixel
(0, 0, plum);
System\Drawing\Imaging\ImageAttributesTests.cs (48)
76
bitmap.
SetPixel
(0, 0, _actualYellow);
98
bitmap.
SetPixel
(0, 0, _actualYellow);
150
bitmap.
SetPixel
(0, 0, _actualYellow);
155
bitmap.
SetPixel
(0, 0, grayShade);
178
bitmap.
SetPixel
(0, 0, _actualGreen);
209
bitmap.
SetPixel
(0, 0, _actualGreen);
280
bitmap.
SetPixel
(0, 0, _actualGreen);
307
bitmap.
SetPixel
(0, 0, _actualGreen);
346
bitmap.
SetPixel
(0, 0, _actualYellow);
347
bitmap.
SetPixel
(1, 1, Color.FromArgb(255, 100, 100, 100));
369
bitmap.
SetPixel
(0, 0, _actualYellow);
370
bitmap.
SetPixel
(1, 1, grayShade);
396
bitmap.
SetPixel
(0, 0, _actualYellow);
397
bitmap.
SetPixel
(1, 1, grayShade);
425
bitmap.
SetPixel
(0, 0, _actualYellow);
426
bitmap.
SetPixel
(1, 1, grayShade);
486
bitmap.
SetPixel
(0, 0, Color.FromArgb(255, 230, 50, 220));
499
bitmap.
SetPixel
(0, 0, Color.FromArgb(255, 230, 50, 220));
512
bitmap.
SetPixel
(0, 0, Color.FromArgb(255, 230, 50, 220));
542
bitmap.
SetPixel
(0, 0, Color.FromArgb(255, 230, 50, 220));
556
bitmap.
SetPixel
(0, 0, Color.FromArgb(255, 230, 50, 220));
585
bitmap.
SetPixel
(0, 0, Color.FromArgb(255, 100, 255, 0));
598
bitmap.
SetPixel
(0, 0, Color.FromArgb(255, 100, 255, 0));
611
bitmap.
SetPixel
(0, 0, Color.FromArgb(255, 100, 255, 0));
644
bitmap.
SetPixel
(0, 0, Color.FromArgb(255, 100, 255, 0));
675
bitmap.
SetPixel
(0, 0, _actualGreen);
691
bitmap.
SetPixel
(0, 0, Color.FromArgb(255, 100, 255, 0));
725
bitmap.
SetPixel
(0, 0, _actualGreen);
742
bitmap.
SetPixel
(0, 0, Color.FromArgb(255, 100, 255, 0));
759
bitmap.
SetPixel
(0, 0, Color.FromArgb(255, 100, 255, 0));
791
bitmap.
SetPixel
(0, 0, Color.FromArgb(255, 100, 100, 100));
806
bitmap.
SetPixel
(0, 0, Color.FromArgb(255, 100, 100, 100));
820
bitmap.
SetPixel
(0, 0, Color.FromArgb(255, 100, 100, 100));
854
bitmap.
SetPixel
(0, 0, Color.FromArgb(255, 100, 100, 100));
869
bitmap.
SetPixel
(0, 0, Color.FromArgb(255, 100, 100, 100));
909
bitmap.
SetPixel
(0, 0, actualColor);
935
bitmap.
SetPixel
(0, 0, actualColor);
965
bitmap.
SetPixel
(0, 0, color);
1015
bitmap.
SetPixel
(0, 0, _actualGreen);
1030
bitmap.
SetPixel
(0, 0, _actualGreen);
1061
bitmap.
SetPixel
(0, 0, Color.FromArgb(255, 100, 100, 100));
1129
bitmap.
SetPixel
(0, 0, Color.FromArgb(255, 100, 100, 100));
1145
bitmap.
SetPixel
(0, 0, Color.FromArgb(255, 100, 100, 100));
1175
bitmap.
SetPixel
(0, 0, _yellowToRedColorMap[0].OldColor);
1188
bitmap.
SetPixel
(0, 0, _yellowToRedColorMap[0].OldColor);
1201
bitmap.
SetPixel
(0, 0, _yellowToRedColorMap[0].OldColor);
1253
bitmap.
SetPixel
(0, 0, _yellowToRedColorMap[0].OldColor);
1267
bitmap.
SetPixel
(0, 0, _yellowToRedColorMap[0].OldColor);
System\Drawing\TextureBrushTests.cs (4)
806
brushBitmap.
SetPixel
(0, 0, Color.Red);
807
brushBitmap.
SetPixel
(1, 0, Color.Green);
808
brushBitmap.
SetPixel
(0, 1, Color.Blue);
809
brushBitmap.
SetPixel
(1, 1, Color.Yellow);
System.Windows.Forms (17)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (4)
77
bitmap.
SetPixel
(0, 0, color1);
78
bitmap.
SetPixel
(0, 1, color2);
79
bitmap.
SetPixel
(1, 1, color1);
80
bitmap.
SetPixel
(1, 0, color2);
System\Windows\Forms\Rendering\ControlPaint.cs (13)
1544
bitmap.
SetPixel
(x, y, foreColor);
2104
bitmap.
SetPixel
(x, y, Color.Transparent);
2114
bitmap.
SetPixel
(x, y, brushColor);
2183
b.
SetPixel
(1, 0, color2);
2184
b.
SetPixel
(0, 1, color2);
2185
b.
SetPixel
(0, 0, color1);
2186
b.
SetPixel
(1, 1, color1);
2193
b.
SetPixel
(1, 0, color1);
2194
b.
SetPixel
(0, 1, color1);
2195
b.
SetPixel
(0, 0, color2);
2196
b.
SetPixel
(1, 1, color2);
2234
bitmap.
SetPixel
(x, y, Color.Transparent);
2244
bitmap.
SetPixel
(x, y, brushColor);
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\DesignerUtils.cs (1)
439
image.
SetPixel
(image.Width / 2, image.Height / 2, testColor);
System.Windows.Forms.Design.Tests (7)
System\Drawing\Design\ImageEditorTests.cs (6)
163
otherImage.
SetPixel
(0, 0, Color.Red);
164
otherImage.
SetPixel
(1, 0, Color.Red);
165
otherImage.
SetPixel
(2, 0, Color.Red);
166
otherImage.
SetPixel
(0, 1, Color.Red);
167
otherImage.
SetPixel
(1, 1, Color.Red);
168
otherImage.
SetPixel
(2, 1, Color.Red);
System\Resources\Tools\StronglyTypedResourceBuilderTests.cs (1)
325
bitmap.
SetPixel
(0, 0, Color.Red);
System.Windows.Forms.Tests (48)
System\Windows\Forms\AxHostTests.cs (2)
1608
original.
SetPixel
(1, 2, Color.FromArgb(unchecked((int)0xFF010203)));
1668
original.
SetPixel
(1, 2, Color.FromArgb(unchecked((int)0xFF010203)));
System\Windows\Forms\ClipboardTests.cs (1)
434
bitmap.
SetPixel
(1, 2, Color.FromArgb(0x01, 0x02, 0x03, 0x04));
System\Windows\Forms\ControlPaintTests.cs (16)
55
bitmap.
SetPixel
(0, 0, Color.FromArgb(255, 50, 100, 150));
56
bitmap.
SetPixel
(1, 0, Color.FromArgb(1, 50, 100, 150));
57
bitmap.
SetPixel
(2, 0, Color.FromArgb(0, 50, 100, 150));
126
mask.
SetPixel
(0, 0, Color.FromArgb(255, 255, 0, 0));
127
mask.
SetPixel
(1, 0, Color.FromArgb(255, 0, 255, 0));
128
mask.
SetPixel
(2, 0, Color.FromArgb(0, 0, 0, 255));
133
bitmap.
SetPixel
(0, 0, Color.FromArgb(255, 50, 100, 150));
134
bitmap.
SetPixel
(1, 0, Color.FromArgb(1, 50, 100, 150));
135
bitmap.
SetPixel
(2, 0, Color.FromArgb(0, 50, 100, 150));
166
bitmap.
SetPixel
(0, 0, Color.FromArgb(255, 50, 100, 150));
167
bitmap.
SetPixel
(1, 0, Color.FromArgb(1, 50, 100, 150));
168
bitmap.
SetPixel
(2, 0, Color.FromArgb(0, 50, 100, 150));
234
bitmap.
SetPixel
(0, 0, Color.FromArgb(255, 50, 100, 150));
235
bitmap.
SetPixel
(1, 0, Color.FromArgb(1, 50, 100, 150));
236
bitmap.
SetPixel
(2, 0, Color.FromArgb(0, 50, 100, 150));
275
bitmap.
SetPixel
(0, 0, imageColor);
System\Windows\Forms\ImageList.ImageCollectionTests.cs (29)
55
image32bppArgbTransparent.
SetPixel
(0, 0, Color.FromArgb(0x12, 0x34, 0x56, 0x78));
103
image32bppArgbTransparent.
SetPixel
(0, 0, Color.FromArgb(0x12, 0x34, 0x56, 0x78));
191
image.
SetPixel
(0, 0, pixel00Color);
193
image.
SetPixel
(1, 0, givenPixel10Color);
248
bitmap.
SetPixel
(0, 0, Color.FromArgb(0x12, 0x34, 0x56, 0x78));
351
image1.
SetPixel
(0, 0, Color.Red);
353
image2.
SetPixel
(0, 0, Color.Blue);
428
bitmap.
SetPixel
(0, 0, Color.FromArgb(0x12, 0x34, 0x56, 0x78));
585
bitmap.
SetPixel
(0, 0, Color.FromArgb(0x12, 0x34, 0x56, 0x78));
896
bitmap.
SetPixel
(0, 0, Color.FromArgb(0x12, 0x34, 0x56, 0x78));
1156
image1.
SetPixel
(0, 0, Color.Red);
1158
image2.
SetPixel
(0, 0, Color.Blue);
1193
image1.
SetPixel
(0, 0, Color.Red);
1195
image2.
SetPixel
(0, 0, Color.Blue);
1305
image1.
SetPixel
(0, 0, Color.Red);
1307
image2.
SetPixel
(0, 0, Color.Blue);
1309
image3.
SetPixel
(0, 0, Color.Yellow);
1339
image1.
SetPixel
(0, 0, Color.Red);
1341
image2.
SetPixel
(0, 0, Color.Blue);
1343
image3.
SetPixel
(0, 0, Color.Yellow);
1403
image1.
SetPixel
(0, 0, Color.Red);
1405
image2.
SetPixel
(0, 0, Color.Blue);
1407
image3.
SetPixel
(0, 0, Color.Yellow);
1443
image1.
SetPixel
(0, 0, Color.Red);
1445
image2.
SetPixel
(0, 0, Color.Blue);
1447
image3.
SetPixel
(0, 0, Color.Yellow);
1495
image1.
SetPixel
(0, 0, Color.Red);
1497
image2.
SetPixel
(0, 0, Color.Blue);
1499
image3.
SetPixel
(0, 0, Color.Yellow);