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)
1540bitmap.SetPixel(x, y, foreColor); 2100bitmap.SetPixel(x, y, Color.Transparent); 2110bitmap.SetPixel(x, y, brushColor); 2179b.SetPixel(1, 0, color2); 2180b.SetPixel(0, 1, color2); 2181b.SetPixel(0, 0, color1); 2182b.SetPixel(1, 1, color1); 2189b.SetPixel(1, 0, color1); 2190b.SetPixel(0, 1, color1); 2191b.SetPixel(0, 0, color2); 2192b.SetPixel(1, 1, color2); 2230bitmap.SetPixel(x, y, Color.Transparent); 2240bitmap.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)
165otherImage.SetPixel(0, 0, Color.Red); 166otherImage.SetPixel(1, 0, Color.Red); 167otherImage.SetPixel(2, 0, Color.Red); 168otherImage.SetPixel(0, 1, Color.Red); 169otherImage.SetPixel(1, 1, Color.Red); 170otherImage.SetPixel(2, 1, Color.Red);
System\Resources\Tools\StronglyTypedResourceBuilderTests.cs (1)
327bitmap.SetPixel(0, 0, Color.Red);
System.Windows.Forms.Tests (48)
System\Windows\Forms\AxHostTests.cs (2)
1610original.SetPixel(1, 2, Color.FromArgb(unchecked((int)0xFF010203))); 1670original.SetPixel(1, 2, Color.FromArgb(unchecked((int)0xFF010203)));
System\Windows\Forms\ClipboardTests.cs (1)
446bitmap.SetPixel(1, 2, Color.FromArgb(0x01, 0x02, 0x03, 0x04));
System\Windows\Forms\ControlPaintTests.cs (16)
57bitmap.SetPixel(0, 0, Color.FromArgb(255, 50, 100, 150)); 58bitmap.SetPixel(1, 0, Color.FromArgb(1, 50, 100, 150)); 59bitmap.SetPixel(2, 0, Color.FromArgb(0, 50, 100, 150)); 128mask.SetPixel(0, 0, Color.FromArgb(255, 255, 0, 0)); 129mask.SetPixel(1, 0, Color.FromArgb(255, 0, 255, 0)); 130mask.SetPixel(2, 0, Color.FromArgb(0, 0, 0, 255)); 135bitmap.SetPixel(0, 0, Color.FromArgb(255, 50, 100, 150)); 136bitmap.SetPixel(1, 0, Color.FromArgb(1, 50, 100, 150)); 137bitmap.SetPixel(2, 0, Color.FromArgb(0, 50, 100, 150)); 168bitmap.SetPixel(0, 0, Color.FromArgb(255, 50, 100, 150)); 169bitmap.SetPixel(1, 0, Color.FromArgb(1, 50, 100, 150)); 170bitmap.SetPixel(2, 0, Color.FromArgb(0, 50, 100, 150)); 236bitmap.SetPixel(0, 0, Color.FromArgb(255, 50, 100, 150)); 237bitmap.SetPixel(1, 0, Color.FromArgb(1, 50, 100, 150)); 238bitmap.SetPixel(2, 0, Color.FromArgb(0, 50, 100, 150)); 277bitmap.SetPixel(0, 0, imageColor);
System\Windows\Forms\ImageList.ImageCollectionTests.cs (29)
57image32bppArgbTransparent.SetPixel(0, 0, Color.FromArgb(0x12, 0x34, 0x56, 0x78)); 105image32bppArgbTransparent.SetPixel(0, 0, Color.FromArgb(0x12, 0x34, 0x56, 0x78)); 193image.SetPixel(0, 0, pixel00Color); 195image.SetPixel(1, 0, givenPixel10Color); 250bitmap.SetPixel(0, 0, Color.FromArgb(0x12, 0x34, 0x56, 0x78)); 353image1.SetPixel(0, 0, Color.Red); 355image2.SetPixel(0, 0, Color.Blue); 430bitmap.SetPixel(0, 0, Color.FromArgb(0x12, 0x34, 0x56, 0x78)); 587bitmap.SetPixel(0, 0, Color.FromArgb(0x12, 0x34, 0x56, 0x78)); 898bitmap.SetPixel(0, 0, Color.FromArgb(0x12, 0x34, 0x56, 0x78)); 1158image1.SetPixel(0, 0, Color.Red); 1160image2.SetPixel(0, 0, Color.Blue); 1195image1.SetPixel(0, 0, Color.Red); 1197image2.SetPixel(0, 0, Color.Blue); 1307image1.SetPixel(0, 0, Color.Red); 1309image2.SetPixel(0, 0, Color.Blue); 1311image3.SetPixel(0, 0, Color.Yellow); 1341image1.SetPixel(0, 0, Color.Red); 1343image2.SetPixel(0, 0, Color.Blue); 1345image3.SetPixel(0, 0, Color.Yellow); 1405image1.SetPixel(0, 0, Color.Red); 1407image2.SetPixel(0, 0, Color.Blue); 1409image3.SetPixel(0, 0, Color.Yellow); 1445image1.SetPixel(0, 0, Color.Red); 1447image2.SetPixel(0, 0, Color.Blue); 1449image3.SetPixel(0, 0, Color.Yellow); 1497image1.SetPixel(0, 0, Color.Red); 1499image2.SetPixel(0, 0, Color.Blue); 1501image3.SetPixel(0, 0, Color.Yellow);