vtkPNGWriter - Printed image pixels does not correspond to those specified in the associated RenderWindow
I create a very simple pipeline from a vtkConeSource and render the actor to a vtkRenderWindow which i specified the size with
renderWindow->SetSize(2400,1600)
I use a vtkWindowToImageFilter to convert this rendered window with the option OffScreenRenderingOn() in order to write the image to a .png file.
I expect the written image to be 2400x1600 pixels but I get 2400x1188 instead of.
I join the source file to reproduce the behaviour and the associated CMakeLists.txt file.
My configuration is as follows:
- OS: Windows 7
- Generator: Visual Studio 15 2017 Win64
- VTK 8.1.1 compiled with Visual Studio 15 2017 Win64
- cmake 3.12.1