Jump to content

Color of a screen pixel: Difference between revisions

(added c#)
Line 20:
=={{header|C sharp|C#}}==
 
<lang csharp>using System;
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 csharp>
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.