<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Hello Jim,</DIV>
<DIV> </DIV>
<DIV>thanks a lot! Somehow it worked even easier: I just set the "OffScreenRenderingOn()"</DIV>
<DIV> </DIV>
<DIV>Greets Dmitri<BR><BR>--- Jim Harsh <I><jharsh@lanl.gov></I></B> schrieb am <B>Mi, 19.8.2009:<BR></DIV>
<BLOCKQUOTE style="BORDER-LEFT: rgb(16,16,255) 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px"><BR>Von: Jim Harsh <jharsh@lanl.gov><BR>Betreff: Re: [vtkusers] Saving BMP without visualizing them<BR>An: "Dmitri Danewitz" <d.danewitz@yahoo.de><BR>Datum: Mittwoch, 19. August 2009, 12:56<BR><BR>
<DIV class=plainMail><BR><BR>Hi Dmitri,<BR><BR>I haven't seen a reply to your message, and I haven't used VTK for a <BR>while but I think what you want to do is to use the off screen <BR>renderer. Something like VTKOffScreenRenderer. It may have the OS in <BR>the name, I don't remember.<BR><BR>Good luck,<BR>Jim<BR><BR><BR>At 04:46 AM 8/18/2009, you wrote:<BR>>Hello!<BR>><BR>>I wrote a program, that visualizes a BMP and then saves it <BR>>afterwards. But I can't manage to only save the BMP without <BR>>visualizing it first. What am I doing wrong?<BR>><BR>>Here's how I try to save the vtkRenderer, where my image data is:<BR>><BR>>vtkRendererSource *renSrcBMP = vtkRendererSource::New();<BR>> renSrcBMP->SetInput(ren[1]);<BR>> renSrcBMP->WholeWindowOn();<BR>> vtkBMPWriter *bmpWriter =
vtkBMPWriter::New();<BR>> bmpWriter->SetInput(renSrcBMP->GetOutput());<BR>> bmpWriter->SetFileName("d:/Output.bmp");<BR>> bmpWriter->Write();<BR>><BR>>Greets<BR>>Dmitri<BR>><BR>>_______________________________________________<BR>>Powered by www.kitware.com<BR>><BR>>Visit other Kitware open-source projects at <BR>><A href="http://www.kitware.com/opensource/opensource.html" target=_blank>http://www.kitware.com/opensource/opensource.html</A><BR>><BR>>Please keep messages on-topic and check the VTK FAQ at: <BR>><A href="http://www.vtk.org/Wiki/VTK_FAQ" target=_blank>http://www.vtk.org/Wiki/VTK_FAQ</A><BR>><BR>>Follow this link to subscribe/unsubscribe:<BR>><A href="http://www.vtk.org/mailman/listinfo/vtkusers" target=_blank>http://www.vtk.org/mailman/listinfo/vtkusers</A><BR><BR></DIV></BLOCKQUOTE></B></td></tr></table><br>