Creating a .png file from a .vtu file

I’m trying to create a screenshot essentially of the 2d render made from this code:


I’ve been looking around to see if anyone else has done this and I’m trying to avoid just using the screenshot tool that is on my computer, but so far everything that I have found and tried doesn’t work.