public override Bitmap GetAppWindowAsBitmap(AppWindow aw) { AutomationElement tempWindow = (AutomationElement)((UIAElementInfo)aw.RefObject).ElementObject; return(tempWindow.Capture()); }
public override Bitmap GetCurrentWindowBitmap() { return(CurrentWindow.Capture()); }