<html><div style='background-color:'><DIV class=RTE>Hi, I want to know how to fit a rendered image to the size of the renderwindow?</DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE>vtkImageActor *actor = vtkImageActor::New();<BR>actor->SetInput(bmpReader->GetOutput());</DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE>vtkRenderer *renderer = vtkRenderer::New();<BR> renderer->AddActor(actor);</DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE>vtkRenderWindow *renderWindow = vtkRenderWindow::New();<BR>renderWindow->AddRenderer(renderer);<BR>int extent[6];<BR>bmpReader->GetDataExtent(extent);<BR>renderWindow->SetSize(extent[1], extent[3]); ??? The displayed image is always smaller than the window...<BR> <BR>How can I display the rendering window for a long time without an interactor? Is it possible?</DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE>Thanks a lot.</DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE>Pierre-Jean</DIV></div></html>