How to use property UseImageActor of ResliceCursorRepresentation class

The default value of UseImageActor is zero. If set to 1, the image will not be displayed. Why I try it, The reason is that the same window width and window level result in a significant difference in grayscale display between vtkImageViewer2 and vtkResliceCursorWidget