<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>Hi,<br>
<br>
I use the following lines of code to save the screen to a .png file.<br>
<br>
</p>
<div> // set up screenshot <br>
vtkSmartPointer<vtkWindowToImageFilter> windowToImageFilter =<br>
vtkSmartPointer<vtkWindowToImageFilter>::New();<br>
windowToImageFilter->SetInput(renderer->GetRenderWindow());<br>
//set the resolution of the output image <br>
windowToImageFilter->SetMagnification(Quality);<br>
//also record the alpha (transparency) channel<br>
windowToImageFilter->SetInputBufferTypeToRGBA();<br>
// read from the back buffer<br>
windowToImageFilter->ReadFrontBufferOff();<br>
windowToImageFilter->Update();<br>
// write image<br>
vtkSmartPointer<vtkPNGWriter> writer =<br>
vtkSmartPointer<vtkPNGWriter>::New();<br>
QString full_path = Path + "/Screenshot_" + QTime::currentTime().toString().remove(":") + ".png";<br>
writer->SetFileName(full_path.toStdString().c_str());<br>
writer->SetInputConnection(windowToImageFilter->GetOutputPort());<br>
writer->Write();</div>
<br>
Everything works great but the <span>vtkBillboardTextActor3D</span> actors are not part of the resulting image.<br>
(Of course I added them to the renderer and I can see the text on the screen!)<br>
<br>
What could be the problem?<br>
<br>
Thank you!<br>
<br>
<br>
<br>
<p></p>
</div>
</body>
</html>