neuroglancer.UnsynchronizedViewer.screenshot(
    
size=Noneinclude_depth=Falsestatistics_callback=None)

Captures a screenshot synchronously.

Parameters:
size=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=False

Optional. Specifies whether to also return depth information.

Returns:

The screenshot.