-
neuroglancer.UnsynchronizedViewer.screenshot(
size: tuple[int, int] | None =None,
include_depth: bool =False,
statistics_callback: (
Callable[[ScreenshotStatistics], None] | None
) =None,) -> ActionState Captures a screenshot synchronously.
- Parameters:¶
- size: tuple[int, int] | None =
None¶ Optional. List of [width, height] specifying the dimension in pixels of the canvas to use. If specified, UI controls are hidden and the canvas is resized to the specified dimensions while the screenshot is captured.
- include_depth: bool =
False¶ Optional. Specifies whether to also return depth information.
- size: tuple[int, int] | None =
- Returns:¶
The screenshot.