<br><br><div class="gmail_quote">On Thu, Oct 6, 2011 at 4:14 PM, <span dir="ltr"><<a href="mailto:d74n5pohf9@ipharzle.e4ward.com" target="_blank">d74n5pohf9@ipharzle.e4ward.com</a>></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>
> Hi,<br>
><br>
><br>> I am now trying to use the CAIRO_OPERATOR_MULTIPLY (<br>
> <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>
> and<br>
> <a href="http://cairographics.org/operators/" target="_blank">http://cairographics.org/operators/</a> in "Blend Modes") which appears in<br>
> cairo<br>
> 1.10, according to the documentation. But, in pycairo 1.10.0, I can't<br>
> find<br>
> it as cairo.OPERATOR_MULTIPLY<br>
><br>
> So, I "git cloned" the rep and found in src/cairomodule.c :<br>
> "CONSTANT(OPERATOR_CLEAR); CONSTANT(OPERATOR_SOURCE); ..."<br>
> Would it be as easy as adding "CONSTANT(OPERATOR_MULTIPLY);" to enable<br>
> 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>
><br>
> Thank you all for this great work around cairo.<br>
<font color="#888888"><br></font></blockquote></div>