vtkResizingWindowToImageFilter and alpha/transparent backgrounds

Just wanted to let the community know that vtkResizingWindowToImageFilter does not appear to properly handle the alpha channel. Setting SetInputBufferTypeToRGBA does not add a 4th element to the output. This was annoying for me since I wanted to render an image with a transparent background.

It turns out that under the hood this filter just uses a vtkWindowToImageFilter, so you can just copy the code vtkResizingWindowToImageFilter uses to do the scaling computation and use vtkWindowToImageFilter directly.

Sounds like an easy bugfix in vtkResizingWindowToImageFilter, please open a Merge Request :slight_smile:

Hello,

You can report that issue here: https://gitlab.kitware.com/vtk/vtk/-/issues

best,

PC