# How to use the UseImageActor properties of the vtkResliceCursorRepresentation object

**URL:** https://discourse.vtk.org/t/how-to-use-the-useimageactor-properties-of-the-vtkreslicecursorrepresentation-object/12049
**Category:** Development
**Created:** [July 28, 2023, 1:33am UTC](https://discourse.vtk.org/t/how-to-use-the-useimageactor-properties-of-the-vtkreslicecursorrepresentation-object/12049 "2023-07-28T01:33:43Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![quantiehan](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/q/e95f7d/32.png) [@quantiehan](https://discourse.vtk.org/u/quantiehan)
#### Post date: [July 28, 2023, 1:33am UTC](https://discourse.vtk.org/t/how-to-use-the-useimageactor-properties-of-the-vtkreslicecursorrepresentation-object/12049/1 "2023-07-28T01:33:43Z")

</div>

I found that there is a significant difference in grayscale display between the vtkResliceCursorWidget and vtkImageViewer2 classes when displaying images at the same window width and level. Through comparison, it was found that vtkImageViewer2 displays images more accurately, using the ImageActor object。 the displaying object of vtkResliceCursorWidget vtkResliceCursorRepresentation that also has the UseImageActor attribute, But when I use UseImageActorON or SetUseImageActor() to set it to 1, the image is not displayed

---

<div class="post-metadata">

### Author: ![SeanHan](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/s/6f9a4e/32.png) [@SeanHan](https://discourse.vtk.org/u/SeanHan)
#### Post date: [March 12, 2025, 8:34am UTC](https://discourse.vtk.org/t/how-to-use-the-useimageactor-properties-of-the-vtkreslicecursorrepresentation-object/12049/2 "2025-03-12T08:34:10Z")

</div>

I 'm also confused.
