<div dir="ltr">Hello all,<div><br></div><div>I am using the button widget with the texture button representation in the following way:</div><div><div><br></div><div>
<p style="margin:0px">image1 = vtk.vtkPNGReader()</p>
<p style="margin:0px"> image1.SetFileName('infinity.png')</p>
<p style="margin:0px"> image1.Update()</p>
<p style="margin:0px"><br></p>
<p style="margin:0px"> button_rep = vtk.vtkTexturedButtonRepresentation2D()</p>
<p style="margin:0px"> button_rep.SetNumberOfStates(2)</p>
<p style="margin:0px"> button_rep.SetButtonTexture(0, image1.GetOutput())</p>
<p style="margin:0px"> button_rep.SetButtonTexture(1, image1.GetOutput())</p>
<p style="margin:0px"><br></p>
<p style="margin:0px"> button = vtk.vtkButtonWidget()</p>
<p style="margin:0px"> button.SetInteractor(iren)</p>
<p style="margin:0px"> button.SetRepresentation(button_rep)</p>
<p style="margin:0px">....</p><p style="margin:0px"><br></p><p style="margin:0px">The input file is a standard 32x32 PNG icon from icomoon.</p><p style="margin:0px"><br></p><p style="margin:0px">Currently I am getting this result. See for example the top right corner with the</p><p style="margin:0px">infinity symbol.</p><p style="margin:0px"><br></p>
<p style="margin:0px"><a href="https://dl.dropboxusercontent.com/u/2481924/Screenshot%20from%202015-07-14%2018%3A51%3A52.png">https://dl.dropboxusercontent.com/u/2481924/Screenshot%20from%202015-07-14%2018%3A51%3A52.png</a><br></p><p style="margin:0px"><br></p><p style="margin:0px">You will notice that it looks edgy and not smooth. </p><p style="margin:0px"><br></p><p style="margin:0px">How can I improve the rendering of this icon? So that it looks smoother with less aliasing?</p><p style="margin:0px">What is provided by VTK for this purpose?</p><p style="margin:0px"><br></p><p style="margin:0px">Best regards,</p><p style="margin:0px">Eleftherios</p><p style="margin:0px"><br></p><p style="margin:0px"><br></p></div></div></div>