Anonymous user
Color of a screen pixel: Difference between revisions
→{{header|C sharp|C#}}
(added c#) |
|||
Line 20:
=={{header|C sharp|C#}}==
<lang csharp>using System;
using System.Drawing;
using System.Windows.Forms;
Line 32 ⟶ 31:
g.CopyFromScreen(new Point(0, 0), new Point(0, 0), new Size(w, h));
Color color = img.GetPixel(x, y);</lang
|