<DIV>You do not need to create new vtkRenderWindow. Instead you do this:</DIV>
<DIV> </DIV>
<DIV>//TvtkBorlandRenderWindow *vtkRenderWindow1 </DIV>
<DIV>vtkWindowToImageFilter *w2i = vtkWindowToImageFilter::New();<BR>w2i->SetInput(vtkRenderWindow1 ->GetRenderWindow());</DIV>
<DIV> </DIV>
<DIV>Jim<BR><BR><B><I>Anders Vestbo <anders@fmri.no></I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">hi,<BR><BR>I am trying to use the vtkWindowToImageFilter to save some snapshots to <BR>a (tiff-)file. I have encapsulated a vtk render window on a standard <BR>TForm component in Borland C++ Builder using the TvtkBorlandRenderWindow <BR>component class (provided in Examples/GUI/Win32/vtkBorland). However, <BR>the following code does not seem to work, i.e. it simply crashes with an <BR>"Access violation":<BR><BR>//TvtkBorlandRenderWindow *vtkRenderWindow1<BR><BR>vtkRenderWindow *renWin = vtkRenderWindow1->GetRenderWindow();<BR><BR>vtkWindowToImageFilter *filter = vtkWindowToImageFilter::New();<BR>vtkTIFFWriter *writer = vtkTIFFWriter::New();<BR><BR>filter->SetInput(renWin);<BR>filter->Update(); <-----crash<BR>...<BR><BR>anyone have any idea why this happens??<BR><BR>Anders Vestbo<BR></BLOCKQUOTE><p>
                <hr size=1>Do you Yahoo!?<br>
Plan great trips with <a href="http://us.lrd.yahoo.com/_ylc=X3oDMTFmZ2htMTlyBF9TAzMyOTc1MDIEX3MDODYyNzYxNwRwb3MDMQRzZWMDbWFpbARzbGsDZm9vdGVy/SIG=10tesb5j9/**http%3a//travel.yahoo.com/">Yahoo! Travel</a>: Now <a href="http://us.lrd.yahoo.com/_ylc=X3oDMTFmMnFhajhhBF9TAzMyOTc1MDIEX3MDODYyNzYxNwRwb3MDMgRzZWMDbWFpbARzbGsDZm9vdGVy/SIG=12jqk5n45/**http%3a//travel.yahoo.com/p-travelguide-191500002-destination_guides_vacations-i">over 17,000 guides!</a>