C# Class WindowsContextTracker.Helpers.ScreenCapture

Datei anzeigen Open project: sealuzh/PersonalAnalytics

Public Methods

Method Description
CaptureActiveWindowHq ( ) : Screenshot

for OCR engine: takes a screenshot and then does some pre-OCR optimizations and returns it

TakeAndSaveScreenshot ( ) : string

takes a screenshot, resizes it for later processing and saves it on the participant's computer hint: this is a temporary solution until OCR works

Private Methods

Method Description
CaptureWindow ( ) : Screenshot

creates and returns the screenshot of the currently active window

GetDesktopWindow ( ) : IntPtr
GetForegroundWindow ( ) : IntPtr
GetWindowRect ( IntPtr hWnd, System.Drawing.Rect &rect ) : IntPtr

Method Details

CaptureActiveWindowHq() public static method

for OCR engine: takes a screenshot and then does some pre-OCR optimizations and returns it
public static CaptureActiveWindowHq ( ) : Screenshot
return OcrLibrary.Helpers.Screenshot

TakeAndSaveScreenshot() public static method

takes a screenshot, resizes it for later processing and saves it on the participant's computer hint: this is a temporary solution until OCR works
public static TakeAndSaveScreenshot ( ) : string
return string