# Take a screenshot of the scene with a transparent background

**URL:** https://discourse.vtk.org/t/take-a-screenshot-of-the-scene-with-a-transparent-background/5468
**Category:** Web
**Created:** [March 30, 2021, 9:42pm UTC](https://discourse.vtk.org/t/take-a-screenshot-of-the-scene-with-a-transparent-background/5468 "2021-03-30T21:42:44Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![zaidb](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/z/3bc359/32.png) [@zaidb](https://discourse.vtk.org/u/zaidb)
#### Post date: [March 30, 2021, 9:42pm UTC](https://discourse.vtk.org/t/take-a-screenshot-of-the-scene-with-a-transparent-background/5468/1 "2021-03-30T21:42:44Z")

</div>

Hello,

As it is possible to get the canvas of the renderWindow, I was wondering if it’s possible to take a screenshot of the scene with a transparent?

Kind regards,  
Zaid

---

<div class="post-metadata">

### Author: ![Forrest](https://discourse.vtk.org/user_avatar/discourse.vtk.org/forrest/32/300_2.png) [@Forrest](https://discourse.vtk.org/u/Forrest)
#### Post date: [April 2, 2021, 9:25pm UTC](https://discourse.vtk.org/t/take-a-screenshot-of-the-scene-with-a-transparent-background/5468/2 "2021-04-02T21:25:03Z")

</div>

Hi, yes you can. You will need to set the vtk renderer’s background to be transparent, like so:

```auto
renderer.setBackground(0, 0, 0, 0)

```
