C# Класс WindowsContextTracker.Helpers.ScreenCapture

Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
CaptureWindow ( ) : Screenshot

creates and returns the screenshot of the currently active window

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

Описание методов

CaptureActiveWindowHq() публичный статический Метод

for OCR engine: takes a screenshot and then does some pre-OCR optimizations and returns it
public static CaptureActiveWindowHq ( ) : Screenshot
Результат OcrLibrary.Helpers.Screenshot

TakeAndSaveScreenshot() публичный статический Метод

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
Результат string