<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Hello!</DIV>
<DIV>&nbsp;</DIV>
<DIV>I wrote a program, that visualizes a BMP and then saves it afterwards. But I can't manage to only save the BMP without visualizing it first. What am I doing wrong?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Here's how I try to save the vtkRenderer, where my image data is:</DIV>
<DIV>&nbsp;</DIV>
<DIV>vtkRendererSource *renSrcBMP = vtkRendererSource::New();&nbsp;<BR>&nbsp;&nbsp;renSrcBMP-&gt;SetInput(ren[1]);&nbsp;<BR>&nbsp;&nbsp;renSrcBMP-&gt;WholeWindowOn();&nbsp;<BR>&nbsp;&nbsp;vtkBMPWriter *bmpWriter = vtkBMPWriter::New();&nbsp;<BR>&nbsp;&nbsp;bmpWriter-&gt;SetInput(renSrcBMP-&gt;GetOutput());&nbsp;</DIV>
<DIV>&nbsp;&nbsp;bmpWriter-&gt;SetFileName("d:/Output.bmp");&nbsp;<BR>&nbsp;&nbsp;bmpWriter-&gt;Write();</DIV>
<DIV>&nbsp;</DIV>
<DIV>Greets</DIV>
<DIV>Dmitri</DIV></td></tr></table><br>