<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Hello Jim,</DIV>
<DIV>&nbsp;</DIV>
<DIV>thanks a lot! Somehow it worked even easier: I just set the "OffScreenRenderingOn()"</DIV>
<DIV>&nbsp;</DIV>
<DIV>Greets Dmitri<BR><BR>--- Jim Harsh <I>&lt;jharsh@lanl.gov&gt;</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 &lt;jharsh@lanl.gov&gt;<BR>Betreff: Re: [vtkusers] Saving BMP without visualizing them<BR>An: "Dmitri Danewitz" &lt;d.danewitz@yahoo.de&gt;<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>&gt;Hello!<BR>&gt;<BR>&gt;I wrote a program, that visualizes a BMP and then saves it <BR>&gt;afterwards. But I can't manage to only save the BMP without <BR>&gt;visualizing it first. What am I doing wrong?<BR>&gt;<BR>&gt;Here's how I try to save the vtkRenderer, where my image data is:<BR>&gt;<BR>&gt;vtkRendererSource *renSrcBMP = vtkRendererSource::New();<BR>&gt;&nbsp;&nbsp;&nbsp;renSrcBMP-&gt;SetInput(ren[1]);<BR>&gt;&nbsp;&nbsp;&nbsp;renSrcBMP-&gt;WholeWindowOn();<BR>&gt;&nbsp;&nbsp;&nbsp;vtkBMPWriter *bmpWriter =
 vtkBMPWriter::New();<BR>&gt;&nbsp;&nbsp;&nbsp;bmpWriter-&gt;SetInput(renSrcBMP-&gt;GetOutput());<BR>&gt;&nbsp;&nbsp;&nbsp;bmpWriter-&gt;SetFileName("d:/Output.bmp");<BR>&gt;&nbsp;&nbsp;&nbsp;bmpWriter-&gt;Write();<BR>&gt;<BR>&gt;Greets<BR>&gt;Dmitri<BR>&gt;<BR>&gt;_______________________________________________<BR>&gt;Powered by www.kitware.com<BR>&gt;<BR>&gt;Visit other Kitware open-source projects at <BR>&gt;<A href="http://www.kitware.com/opensource/opensource.html" target=_blank>http://www.kitware.com/opensource/opensource.html</A><BR>&gt;<BR>&gt;Please keep messages on-topic and check the VTK FAQ at: <BR>&gt;<A href="http://www.vtk.org/Wiki/VTK_FAQ" target=_blank>http://www.vtk.org/Wiki/VTK_FAQ</A><BR>&gt;<BR>&gt;Follow this link to subscribe/unsubscribe:<BR>&gt;<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>