<div dir="ltr">
<pre style="margin:0px;text-indent:0px"><font face="arial, helvetica, sans-serif">Dear Developers,</font></pre><pre style="margin:0px;text-indent:0px"><font face="arial, helvetica, sans-serif"><br></font></pre><pre style="margin:0px;text-indent:0px"><font face="arial, helvetica, sans-serif">I'm trying to make this snippet work under Paraview 5.0.1 and OpenGL2.</font></pre><pre style="margin:0px;text-indent:0px"><font face="arial, helvetica, sans-serif">The following snippet is OK with Paraview 4.2 and 4.4 versions (OpenGL1) but with 5.0.1 (OpenGL2 build) setting both brush and color will show brush only.</font></pre><pre style="margin:0px;text-indent:0px"><font face="arial, helvetica, sans-serif">
virtual bool Paint(vtkContext2D *painter)
{

.....
          this->Brush->SetTexture(myTexturePattern);
          this->Brush->SetColor(myColor);
.....

          painter->ApplyBrush(this->Brush);
.....</font><br></pre><pre style="margin:0px;text-indent:0px"><font face="arial, helvetica, sans-serif">}</font></pre><pre style="margin:0px;text-indent:0px"><font face="arial, helvetica, sans-serif"><br></font></pre><pre style="margin:0px;text-indent:0px"><font face="arial, helvetica, sans-serif">Everything is OK if I set brush only or color only while mixed mode shows brush only.</font></pre><pre style="margin:0px;text-indent:0px"><font face="arial, helvetica, sans-serif"><br></font></pre><pre style="margin:0px;text-indent:0px"><font face="arial, helvetica, sans-serif">Thank you for any hints,</font></pre><pre style="margin:0px;text-indent:0px"><font face="arial, helvetica, sans-serif"><br></font></pre><pre style="margin:0px;text-indent:0px"><font face="arial, helvetica, sans-serif">Regards,</font></pre><pre style="margin:0px;text-indent:0px"><font face="arial, helvetica, sans-serif">Stefano</font></pre></div>