4.11.0 version
If I want to save a screenshot of the 3D view only a small blue strip is saved. I tried to save the 3D view with transparent background as well with this script:
renderWindow = slicer.app.layoutManager().threeDWidget(0).threeDView().renderWindow()
renderWindow.SetAlphaBitPlanes(1)
wti = vtk.vtkWindowToImageFilter()
wti.SetInputBufferTypeToRGBA()
wti.SetInput(renderWindow)
writer = vtk.vtkPNGWriter()
writer.SetFileName(“D:/DICOM/screenshot.png”)
writer.SetInputConnection(wti.GetOutputPort())
writer.Write()
but the result is the same