# 3D view saving problem

**URL:** <https://discourse.slicer.org/t/3d-view-saving-problem/13541>\
**Category:** Support\
**Created:** [September 18, 2020, 10:20am UTC](https://discourse.slicer.org/t/3d-view-saving-problem/13541 "2020-09-18T10:20:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![opetne](https://avatars.discourse-cdn.com/v4/letter/o/71e660/32.png) [@opetne](https://discourse.slicer.org/u/opetne)\
**Post date:** [September 18, 2020, 10:20am UTC](https://discourse.slicer.org/t/3d-view-saving-problem/13541/1 "2020-09-18T10:20:49Z")

</div>

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  
 ![screenshot](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/d/0/d097874e35e5ec520490e84056c41256f8eca5ef.png)
