[vtkusers] mouse flicker after vtkWindowToImageFilter
Zisik, Herbert
Herbert.Zisik at muc.mtu.de
Thu Jun 24 10:32:39 EDT 2004
Hi all,
I'm new in programming with VTK. I use the following code to save the render
window as image:
//**************************************************************************
****************
renderWindow->OffScreenRenderingOn();
vtkWindowToImageFilter* w2i = vtkWindowToImageFilter::New();
w2i->SetInput( renderWindow );
// w2i->Update();
vtkJPEGWriter* jpegw = vtkJPEGWriter::New();
jpegw->SetInput( w2i->GetOutput() );
jpegw->SetFileName("whatever.jpg" );
jpegw->ProgressiveOn();
jpegw->SetQuality( 100 );
jpegw->Write();
jpegw->Delete();
w2i->Delete();
renderWindow->OffScreenRenderingOff();
//**************************************************************************
****************
But there is a side effect: After them the mouse cursor flickers on the
render window when pressing the mouse button. Exists there a solution but I
don't now it?
I request for help.
Mit freundlichen Grüßen / Best Regards
Herbert Zisik
MTU Aero Engines GmbH
Zerstörungsfreie Prüfverfahren (TEFP)
Advanced Non-Destructive Testing (TEFP)
Dachauer Str. 665
80995 München
Germany
More information about the vtkusers
mailing list