/// <summary> /// Gets a byte array of a bitmap for the window specified by the handle /// </summary> /// <param name="hWnd"></param> /// <returns></returns> public static byte[] GetWindowCaptureAsByteArray(int handle) { return(ScreenCapturing.GetBytes(ScreenCapturing.GetWindowCaptureAsBitmap(handle))); }
/// <summary> /// Gets a byte array of a bitmap for the desktop window /// </summary> /// <returns></returns> public static byte[] GetDesktopWindowCaptureAsByteArray() { return(ScreenCapturing.GetBytes(ScreenCapturing.GetDesktopWindowCaptureAsBitmap())); }