C# Class WindowsContextTracker.Helpers.ScreenCapture

Afficher le fichier Open project: sealuzh/PersonalAnalytics

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

TakeAndSaveScreenshot() public static méthode

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
Résultat string