Tego Bot API Documentation v0.1.1
Tego Bot API Documentation / getScreen
Function: getScreen()
getScreen():
Screen
Defined in: index.ts:502
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);