Tego Bot API Documentation v0.2.0
Tego Bot API Documentation / getScreen
Function: getScreen()
getScreen():
Screen
Defined in: botjs/src/index.ts:480
Get the global Screen instance for capture operations
Returns
Screen
Screen object
Example
typescript
import { getScreen } from "@tego/botjs";
const screen = getScreen();
const bitmap = await screen.capture(0, 0, 800, 600);