Skip to content

BUG: Enable high-resolution screenshots of slice views

Created by: msmolens

This commit enables rendering high-resolution screenshots of the slice views. Previously the screenshots were scaled and interpolated after being captured at screen resolution.

Alternative attempts to render these screenshots, using vtkRenderLargeImage or vtkWindowToImageFilter without offscreen rendering, resulted in incorrect rendering of one or more of: the slice image, the annotations (ruler, orientation marker, etc.), or lightbox mode.

Open issues are:

  • Some text doesn't scale in the high-resolution screenshot (corner annotation, ruler measurement, orientation marker labels)
  • Ruler height is fixed

On Windows this depends on offscreen rendering fixes in vtkWin32OpenGLRenderWindow: vtk/vtk!992 (merged)

Fixes #3885

Co-authored-by: Alexis Girault alexis.girault@kitware.com

Merge request reports

Loading