public Bitmap ScreenCapture() { GDI32.BitBlt(hdcDest, 0, 0, width, height, hdcSrc, screen_width / 2 - width / 2, screen_height / 2 - height / 2, GDI32.SRCCOPY); return(Image.FromHbitmap(hBitmap)); }