SaveScreenshot and ViewSize resolution issue
SaveScreenshot method gives me an image with resolution different from requested (launched from Python script, from Paraview UI everything works fine).
Here is a sample code
from paraview.simple import *
resolution = [1200, 900]
view = GetActiveViewOrCreate('RenderView')
view.ViewSize = resolution
SaveScreenshot(filePath, view, ImageResolution=resolution, OverrideColorPalette='WhiteBackground')
When running this code block it gives me 1200 x 845 screenshot (while my display has 1920 x 1080). If I comment out the view.ViewSize = resolution line it will give the image of requested resolution, but in that case the color legend for selected field will have wrong scaling spanned all over the image.
Platform: Windows 10 Paraview versions checked: 5.7, 5.9, 5.10.
Link to discussion on discourse.