<div dir="ltr"><div>Hello,</div><div><br></div><div>I'm using Python's Tkinter to display a screenshot from Paraview. As part of the app, I need to "get" some pixel colors in the screenshot. When I get the screenshot using my own computer's function, the app works correctly.</div>
<div><br></div><div>(Just to be explicit, here's the steps involved:</div><div>1. Render the vtk file in Paraview</div><div>2. Screenshot the image, save as PNG</div><div>3. Convert PNG to PPM using an online tool</div>
<div>4. Display the PPM on a Tkinter Canvas</div><div>5. "Get" the RGB value at some pixel in the PPM image)</div><div><br></div><div>However, when the screenshot comes from Parview's own method, the RGB values are always that of the image background - even though I've tested which image coordinates I'm "getting" the pixel colors. </div>
<div><br></div><div>Do you have an explanation for why the pixels are only registering as the background image? Or why there's this discrepancy between the two screenshot methods?</div><div><br></div><div>Thanks!</div>
<div>Nikita</div></div>