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