[vtkusers] Exporting a PNG image brings up a new window.
taijinian at gmail.com
Tue Aug 23 17:57:42 EDT 2011
I am having a problem of adding a PNG export capability to an application.
Below is the functions that I use to export a PNG image.
The problem is that when running the applicaton remotly over Exceed X server
from Linux, a new window is displayed during vtkPNGWriter's Write() method.
That doesn't happen on Windows.
Is there a way to prevent that? Obviously, that is a very undesirable
side-effect - the window is as large as the requested image size and it
stays for the duration of the image export. It then disappears.
Any advice is greatly appreciated,
void exportVTKPlotImage(vtkRenderWindow& renderWindow) const
vtkSmartPointer<vtkRenderWindow> exportingRenderWindow =
vtkSmartPointer<vtkRenderer> renderer =
vtkSmartPointer<vtkPNGWriter> pngWriter =
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers