brain_deer.export.screenshot_export

Screenshot and Video Export for BrainDeer 🧠🦌

High-quality export tools for: - Screenshots (PNG, JPEG, TIFF) - Publication-ready figures - Clinical white-background mode - Video recording of rotations

@author: BrainDeer Team

Classes

ScreenshotExporter

High-quality screenshot exporter.

ScreenshotExportWidget

Widget for screenshot export configuration.

Module Contents

class brain_deer.export.screenshot_export.ScreenshotExporter

High-quality screenshot exporter.

static capture_widget(widget, scale_factor: float = 1.0, white_background: bool = False) → PyQt5.QtGui.QImage

Capture a widget as high-resolution image.

Parameters:
  • widget – QWidget to capture

  • scale_factor – Resolution multiplier (2.0 = 2x resolution)

  • white_background – Convert to white background for clinical use

Returns:

QImage of the widget

static save_image(image: PyQt5.QtGui.QImage, filepath: str, quality: int = 95)

Save image to file.

Parameters:
  • image – QImage to save

  • filepath – Output file path

  • quality – JPEG quality (0-100), ignored for PNG/TIFF

class brain_deer.export.screenshot_export.ScreenshotExportWidget(main_window, parent=None)

Bases: PyQt5.QtWidgets.QWidget

Widget for screenshot export configuration.