<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Hello!</DIV>
<DIV> </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> </DIV>
<DIV>Here's how I try to save the vtkRenderer, where my image data is:</DIV>
<DIV> </DIV>
<DIV>vtkRendererSource *renSrcBMP = vtkRendererSource::New(); <BR> renSrcBMP->SetInput(ren[1]); <BR> renSrcBMP->WholeWindowOn(); <BR> vtkBMPWriter *bmpWriter = vtkBMPWriter::New(); <BR> bmpWriter->SetInput(renSrcBMP->GetOutput()); </DIV>
<DIV> bmpWriter->SetFileName("d:/Output.bmp"); <BR> bmpWriter->Write();</DIV>
<DIV> </DIV>
<DIV>Greets</DIV>
<DIV>Dmitri</DIV></td></tr></table><br>