File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 1313
1414
1515def screenshot (path = 'temp.png' , save = True , show = True , size = None ):
16- """
17- screenshot: use the screenshot capabilities built into neuroglancer to take high-resolution screenshots
18- note that neuroglancer has to load in visible layers before taking a screenshot, so this function may hang on larger volumes
19-
20- Inputs:
21- path (str): the path to save the screenshot to
22- save (bool): whether or not to save the screenshot to path
23- show (bool): whether or not to show the screenshot with matplotlib
24- size ([int, int]): force a specific size of the screenshot. larger size leads to a larger FOV for the screenshot
25- """
16+ """
17+ screenshot: use the screenshot capabilities built into neuroglancer to take high-resolution screenshots
18+ note that neuroglancer has to load in visible layers before taking a screenshot, so this function may hang on larger volumes
19+
20+ Inputs:
21+ path (str): the path to save the screenshot to
22+ save (bool): whether or not to save the screenshot to path
23+ show (bool): whether or not to show the screenshot with matplotlib
24+ size ([int, int]): force a specific size of the screenshot. larger size leads to a larger FOV for the screenshot
25+ """
2626 if size == None :
2727 ss = viewer .screenshot ().screenshot .image_pixels
2828 else :
You can’t perform that action at this time.
0 commit comments