<br><br><div class="gmail_quote">On Thu, Oct 6, 2011 at 4:14 PM,  <span dir="ltr">&lt;<a href="mailto:d74n5pohf9@ipharzle.e4ward.com" target="_blank">d74n5pohf9@ipharzle.e4ward.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


On Sun, 2011-09-25 at 12:00 -0700, <a href="mailto:cairo-request@cairographics.org" target="_blank">cairo-request@cairographics.org</a><br>
wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt;<br>&gt; I am now trying to use the CAIRO_OPERATOR_MULTIPLY (<br>
&gt; <a href="http://cairographics.org/manual/cairo-cairo-t.html#cairo-operator-t" target="_blank">http://cairographics.org/manual/cairo-cairo-t.html#cairo-operator-t</a>,<br>
&gt; and<br>
&gt; <a href="http://cairographics.org/operators/" target="_blank">http://cairographics.org/operators/</a> in &quot;Blend Modes&quot;) which appears in<br>
&gt; cairo<br>
&gt; 1.10, according to the documentation. But, in pycairo 1.10.0, I can&#39;t<br>
&gt; find<br>
&gt; it as cairo.OPERATOR_MULTIPLY<br>
&gt;<br>
&gt; So, I &quot;git cloned&quot; the rep and found in src/cairomodule.c :<br>
&gt; &quot;CONSTANT(OPERATOR_CLEAR); CONSTANT(OPERATOR_SOURCE); ...&quot;<br>
&gt; Would it be as easy as adding &quot;CONSTANT(OPERATOR_MULTIPLY);&quot; to enable<br>
&gt; it under pycairo ???<br>
Yes.<br><br></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
pycairo 1.10.0 does not have support for CAIRO_OPERATOR_MULTIPLY. It<br>
should be fixed in the next version.<br>
<br>
In the meantime you may be able to use<br>
  cairo.OPERATOR_SATURATE + 1<br>
to get the desired result.<br>
<br></blockquote><div><br></div><div>Okay, it works fine, thank you for your help.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Steve<br>
&gt;<br>
&gt; Thank you all for this great work around cairo.<br>
<font color="#888888"><br></font></blockquote></div>