Exemple #1
0
 /// <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)));
 }
Exemple #2
0
 /// <summary>
 /// Gets a byte array of a bitmap for the desktop window
 /// </summary>
 /// <returns></returns>
 public static byte[] GetDesktopWindowCaptureAsByteArray()
 {
     return(ScreenCapturing.GetBytes(ScreenCapturing.GetDesktopWindowCaptureAsBitmap()));
 }