Re: py2cairo, about bindings to "typedef enum _cairo_operator"
A BC <[email protected]>
| Newsgroups | gmane.comp.lib.cairo |
|---|---|
| Message-ID | <CAFsct-YfDJTuFkgBjFZD2j+sHPv7JDY-0OD=bwnhmOFoDE5hwQ@mail.gmail.com> |
On Thu, Oct 6, 2011 at 4:14 PM, <[email protected]> wrote: > On Sun, 2011-09-25 at 12:00 -0700, [email protected] > wrote: > > Hi, > > > > > > I am now trying to use the CAIRO_OPERATOR_MULTIPLY ( > > http://cairographics.org/manual/cairo-cairo-t.html#cairo-operator-t, > > and > > http://cairographics.org/operators/ in "Blend Modes") which appears in > > cairo > > 1.10, according to the documentation. But, in pycairo 1.10.0, I can't > > find > > it as cairo.OPERATOR_MULTIPLY > > > > So, I "git cloned" the rep and found in src/cairomodule.c : > > "CONSTANT(OPERATOR_CLEAR); CONSTANT(OPERATOR_SOURCE); ..." > > Would it be as easy as adding "CONSTANT(OPERATOR_MULTIPLY);" to enable > > it under pycairo ??? > Yes. > > pycairo 1.10.0 does not have support for CAIRO_OPERATOR_MULTIPLY. It > should be fixed in the next version. > > In the meantime you may be able to use > cairo.OPERATOR_SATURATE + 1 > to get the desired result. > > Okay, it works fine, thank you for your help. > Steve > > > > Thank you all for this great work around cairo. > > -- cairo mailing list [email protected] http://lists.cairographics.org/mailman/listinfo/cairo