Annotation Screenshot


I followed the tutorial on Script repository — 3D Slicer documentation to write a python program to take a screenshot. However, The resolution of the screenshot is not very good. I notice that on Annotation Screenshot window we can change Scale Factor to obtain a higher resolution image. I was wondering is there any way we can do that programmatically.

Thank you.

The ScaleFactor on the Annotation Screenshot wasn’t a very reliable method (some renderings didn’t work correctly). You should have better luck if you make the target widget the size you want the capture to be. Here’s an example:

1 Like

Thank you for your answer. I will try that.