Screenshots#
File > Screenshots, the camera on the left (Ctrl+Shift+S), opens the Screenshots panel, which shows a preview of the image before it is saved.
Save: One image, 2D views as separate images or 3D rotation video (see below).
View: one of the four views, or All views as the window lays them out (the enlarged view, if one is enlarged). It starts on the view last clicked.
Scale (x screen): 1 to 4. At 1 the image has the screen’s pixels and matches what the views show; at 2 to 4 it is drawn again at that many times the resolution, so it stays sharp in a paper or on a slide.
Information overlay: the views’ names and slices, the readout, the orientation letters and the colour bars, on or off. The enlarge buttons are never in a screenshot. The views keep their own setting.
Transparent background: the space around the images is left see-through, for PNG and TIFF; JPEG has no transparency.
Image size shows the size in pixels of the image that will be saved.
Save… asks for a file: PNG, TIFF or, for an image without transparency, JPEG. The panel’s choices are its own; their starting values are the screenshot settings in the Settings panel (Settings).
Separate views and rotation videos#
2D views as separate images saves the axial, coronal and sagittal views at once, each in its own file:
saving figure.png writes figure_axial.png, figure_coronal.png and figure_sagittal.png. If any of them
exists, the panel asks once before replacing them.
3D rotation video saves the 3D view turning round, starting from where it is now, as an animated WebP or GIF:
Speed: degrees per second (30 by default); a negative speed turns the other way.
Duration: seconds of video (12 by default, one full turn at 30 degrees per second).
Frames per second: 30 by default.
The preview plays the rotation in a loop at the chosen speed (at most 30 frames per second); Pause stops it on a frame and Play goes on. A progress window follows the recording, and Cancel stops it without writing a file. The 3D view in the main window does not move while the video is recorded. A transparent background needs WebP; GIF has no partial transparency, has fewer colours, and plays at most 50 frames per second, so above that the file dialog offers only WebP.
From Python, Viewer.screenshot saves the same images without a window, for example
viewer.screenshot(None, "figure.png", scale=2, transparent=True) for all views;
viewer.screenshot_views("figure.png") saves the three 2D views and viewer.record_rotation("turn.webp") the video.