If you call GetTextProperty on vtkTextActor, the text property has a shadow option that might help contrast the text better.<div><br></div><div><a href="http://www.vtk.org/doc/nightly/html/classvtkTextProperty.html">http://www.vtk.org/doc/nightly/html/classvtkTextProperty.html</a><br>
<br><div class="gmail_quote">On Thu, Sep 30, 2010 at 12:33 PM, Adam Bruss <span dir="ltr"><<a href="mailto:abruss@awrcorp.com">abruss@awrcorp.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal">Hello fellow VTKUsers,</p><p class="MsoNormal"> </p><p class="MsoNormal">I’m using the vtkTextActor to show 2d text on the screen. Sometimes the text is hard to read because the objects in the background are colored close to the color of the text. For example red text on top of a red object or black text on top of a dark blue object. It would be great if I could give text an outline in a different color. This would make it stand out.</p>
<p class="MsoNormal"> </p><p class="MsoNormal">So my question is what options does VTK have to make text standout against a variety of backgrounds? </p><p class="MsoNormal"> </p><p class="MsoNormal">Thanks,</p><p class="MsoNormal">
Adam</p><p class="MsoNormal"> </p><p class="MsoNormal"><span style="font-size:10.0pt">Adam Bruss</span></p><p class="MsoNormal"><span style="font-size:10.0pt">Development Engineer</span></p><p class="MsoNormal"><span style="font-size:10.0pt">AWR Corporation/Simulation Technology & Applied Research</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">11520 N. Port Washington Rd., Suite 201</span></p><p class="MsoNormal"><span style="font-size:10.0pt">Mequon, WI 53092 USA</span></p><p class="MsoNormal"><span style="font-size:10.0pt">P: 1.262.240.0291 x104</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">F: 1.262.240.0294</span></p><p class="MsoNormal"><span style="font-size:10.0pt">E: <a href="http://abruss@awrcorp.com" target="_blank"><span style="color:blue">abruss@awrcorp.com</span></a></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">W: </span><a href="http://www.awrcorp.com" target="_blank"><span style="font-size:10.0pt;color:blue">http://www.awrcorp.com</span></a></p><p class="MsoNormal"> </p></div>
</div><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>