Awesome, tyvm Gertos!Quote:
It is easy to read the info from the screen in C#
Here an example:
and the result is a bitmap with the part of the screen.Code:public static Bitmap GetBitmap(int x, int y, int dx, int dy) { Bitmap screenCopy = new Bitmap(dx, dy); using (Graphics gdest = Graphics.FromImage(screenCopy)) using (Graphics gsrc = Graphics.FromHwnd(IntPtr.Zero)) { IntPtr hSrcDC = gsrc.GetHdc(); IntPtr hDC = gdest.GetHdc(); int retval = BitBlt(hDC, 0, 0, dx, dy, hSrcDC, x, y, (int)CopyPixelOperation.SourceCopy); gdest.ReleaseHdc(); gsrc.ReleaseHdc(); } return screenCopy; }