# ScreenShot is toooo small when red/yellow/green view too small

**URL:** <https://discourse.slicer.org/t/screenshot-is-toooo-small-when-red-yellow-green-view-too-small/23110>\
**Category:** Development\
**Tags:** screen-capture\
**Created:** [April 25, 2022, 9:04am UTC](https://discourse.slicer.org/t/screenshot-is-toooo-small-when-red-yellow-green-view-too-small/23110 "2022-04-25T09:04:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![caiqj1203](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/caiqj1203/32/14925_2.png) [@caiqj1203](https://discourse.slicer.org/u/caiqj1203)\
**Post date:** [April 25, 2022, 9:04am UTC](https://discourse.slicer.org/t/screenshot-is-toooo-small-when-red-yellow-green-view-too-small/23110/1 "2022-04-25T09:04:09Z")

</div>

I resize main window like this .

 ![mw_too_small](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/2/e/2e5173b2e23e987f70557af071fd299f7d98803b.jpeg)

and I use `captureImageFromView` function to generate screenshot, the screenshot like this

![small_screenshott](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/8/9/89ec8efb766b37b0b8906dc95a01171b062c14bb.jpeg)

What can I do to make the size of the screenshot independent of the display window?

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [April 25, 2022, 12:38pm UTC](https://discourse.slicer.org/t/screenshot-is-toooo-small-when-red-yellow-green-view-too-small/23110/2 "2022-04-25T12:38:07Z")

</div>

You need to make your main window bigger or undock all the widgets (module panel, Python interactor, etc.) that take up space in your main window. You can also maximize each view and take screenshot one by one, change the main window size to be larger than your screen size (`slicer.util.mainWindow().size=qt.QSize(2000,2000)`), or [create a slice viewer outside the main window](https://slicer.readthedocs.io/en/latest/developer_guide/script_repository.html#show-a-slice-view-outside-the-view-layout) and set its size to be very large.

---

<div class="post-metadata">

**Author:** ![caiqj1203](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/caiqj1203/32/14925_2.png) [@caiqj1203](https://discourse.slicer.org/u/caiqj1203)\
**Post date:** [April 26, 2022, 2:01am UTC](https://discourse.slicer.org/t/screenshot-is-toooo-small-when-red-yellow-green-view-too-small/23110/3 "2022-04-26T02:01:20Z")

</div>

What if the screen is very small?

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [April 26, 2022, 3:10am UTC](https://discourse.slicer.org/t/screenshot-is-toooo-small-when-red-yellow-green-view-too-small/23110/4 "2022-04-26T03:10:11Z")

</div>

You can adjust your screen resolution in your system settings and/or [adjust the application scaling](https://slicer.readthedocs.io/en/latest/user_guide/settings.html#runtime-environment-variables) using environment variables.
