# About vtkWindowToImageFilter

**URL:** https://discourse.vtk.org/t/about-vtkwindowtoimagefilter/11592
**Category:** Support
**Created:** [June 1, 2023, 9:01am UTC](https://discourse.vtk.org/t/about-vtkwindowtoimagefilter/11592 "2023-06-01T09:01:15Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Theron](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/t/858c86/32.png) [@Theron](https://discourse.vtk.org/u/Theron)
#### Post date: [June 1, 2023, 9:01am UTC](https://discourse.vtk.org/t/about-vtkwindowtoimagefilter/11592/1 "2023-06-01T09:01:15Z")

</div>

I use vtkWindowToImageFilter to extract content of a rendering window by  
renderWindows-\>Render()  
vtkSmartPointer imageFilters = vtkSmartPointer::New();  
imageFilters-\>SetInput(renderWindows);  
imageFilters-\>Modified();  
imageFilters-\>SetInputBufferTypeToRGB();  
imageFilters-\>ReadFrontBufferOff();  
I usually run this after renderWindows-\>Render() in a loop, yet I find that even without executing the rendering, the filter still can grab the newly updated content in the loop. Could anyone help me about that? Is that because the filter will force the window to render implicittly?
