<div dir="ltr"><br>Hello all,<br><br>Following is my code in which I am trying to read a JPEG image and display it:<br><br>    vtkSmartPointer&lt;vtkJPEGReader&gt; jpeg_reader = vtkSmartPointer&lt;vtkJPEGReader&gt;::New();<br>
    <br>    if(jpeg_reader-&gt;CanReadFile(file_path.c_str()))<br>    {<br>        jpeg_reader-&gt;SetFileName(file_path.c_str());<br>        jpeg_reader-&gt;Update(); <br><br>        vtkSmartPointer&lt;vtkRenderWindowInteractor&gt; interactor = vtkSmartPointer&lt;vtkRenderWindowInteractor&gt;::New();<br>
                <br>        vtkSmartPointer&lt;vtkImageViewer2&gt; image_viewer = vtkSmartPointer&lt;vtkImageViewer2&gt;::New();<br>        image_viewer-&gt;SetInput(jpeg_reader-&gt;GetOutput());<br>        image_viewer-&gt;SetupInteractor(interactor);<br>
        image_viewer-&gt;GetRenderer()-&gt;ResetCamera();<br>        image_viewer-&gt;GetRenderer()-&gt;SetBackground(1.0, 1.0, 1.0);<br>        image_viewer-&gt;GetRenderWindow()-&gt;SetWindowName(&quot;My Window&quot;);<br>
            <br>        interactor-&gt;Initialize();<br>        interactor-&gt;Start();<br>   }<br><br><br>The code displays the image but I am having the following issues:<br><br>1. I am not able to change the window name as attempted above. <br>
<br>2. When I hold the left mouse button and drag, I see the image color map changing. I could not understand how to turn this behavior off (if at all this it is not erroneous) by looking at the class references.<br><br><br>
Any help will be appreciated.<br><br>Thanks,<br>Prathamesh<br></div>