# About vtkResliceCursorWidget

**URL:** https://discourse.vtk.org/t/about-vtkreslicecursorwidget/11490
**Category:** vtk.js
**Created:** [May 19, 2023, 9:15am UTC](https://discourse.vtk.org/t/about-vtkreslicecursorwidget/11490 "2023-05-19T09:15:36Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![YaoDongcai](https://discourse.vtk.org/user_avatar/discourse.vtk.org/yaodongcai/32/7110_2.png) [@YaoDongcai](https://discourse.vtk.org/u/YaoDongcai)
#### Post date: [May 19, 2023, 9:15am UTC](https://discourse.vtk.org/t/about-vtkreslicecursorwidget/11490/1 "2023-05-19T09:15:36Z")

</div>

hi, in the vtkResliceCursorWidget example used according to the official documentation, I found that after using the real DICOM data, when I rotated it I found other white padding in the background, which I hope to eliminate. thank you!  
vtk.js:25.6.0

 ![微信截图_20230519171450](https://discourse.vtk.org/uploads/default/original/2X/4/45449d4982e5650dd42002d8a210e501a6a2ed77.jpeg)

---

<div class="post-metadata">

### Author: ![Xoz](https://discourse.vtk.org/user_avatar/discourse.vtk.org/xoz/32/5714_2.png) [@Xoz](https://discourse.vtk.org/u/Xoz)
#### Post date: [May 19, 2023, 11:09am UTC](https://discourse.vtk.org/t/about-vtkreslicecursorwidget/11490/2 "2023-05-19T11:09:33Z")

</div>

Looks like close to my issue in the topic: [https://discourse.vtk.org/t/problem-with-imagereslice/9705](https://discourse.vtk.org/t/problem-with-imagereslice/9705), you need to set the background color.

---

<div class="post-metadata">

### Author: ![YaoDongcai](https://discourse.vtk.org/user_avatar/discourse.vtk.org/yaodongcai/32/7110_2.png) [@YaoDongcai](https://discourse.vtk.org/u/YaoDongcai)
#### Post date: [May 22, 2023, 1:43am UTC](https://discourse.vtk.org/t/about-vtkreslicecursorwidget/11490/3 "2023-05-22T01:43:23Z")

</div>

Your help was very much appreciated.
