BUG: Enable high-resolution screenshots of slice views
Created by: jcfr
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
Fixes #3885
Co-authored-by: Alexis Girault alexis.girault@kitware.com