<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>When I use "<span>windowToImageFilter->SetMagnification(1)" the text is here!<br>
<br>
Is there any solution to get images with higher resolution AND text?</span><br>
</p>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>Von:</b> vtkusers <vtkusers-bounces@vtk.org> im Auftrag von M. Jordan <mjordan@live.at><br>
<b>Gesendet:</b> Montag, 13. Februar 2017 17:17<br>
<b>An:</b> vtkusers@vtk.org<br>
<b>Betreff:</b> [vtkusers] vtkWindowToImageFilter ignores vtkBillboardTextActor3D actors from renderer</font>
<div> </div>
</div>
<div>
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<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>
</div>
</div>
</div>
</body>
</html>