ElectronBrowserWindow.capturePage method
ElectronBrowserWindow › capturePage
Unofficial
Captures a snapshot of the page withinrect. Omitting rect will capture the whole visible page. Signature:
capturePage(rect?: ElectronRectangle | undefined): Promise<ElectronNativeImage>Parameters:
| Parameter | Type | Description |
|---|---|---|
| rect? | ElectronRectangle | undefined | The bounds to capture. |
Returns: Promise<ElectronNativeImage> — A promise that resolves with the captured image.