forked from Blendman974/faceclaw
Crop screenshots
This commit is contained in:
1 parent
0f4adb0e86
commit
1ec6b3ff83
5 files changed
+85
-10
No files matched your search
@@ -726,9 +726,9 @@ class DashboardController {
|
||||
void this.communicator.setBrightness(level === null, level ?? 0).catch(() => {});
|
||||
}
|
||||
|
||||
/** Save the current composited screen as a 4-bit grayscale PNG. */
|
||||
/** Save the occupied part of the composited screen as a 4-bit grayscale PNG. */
|
||||
saveScreenshot(): string {
|
||||
const path = this.communicator?.saveScreenshot() ?? "";
|
||||
const path = this.communicator?.saveScreenshot(shell.screenshotCropRect()) ?? "";
|
||||
this.appendLog(path ? `screenshot saved: ${path}` : "screenshot skipped: not connected");
|
||||
return path;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user