[cairo] py2cairo, about bindings to "typedef enum _cairo_operator"
miaou.pbl at gmail.com
Sat Oct 8 09:09:24 PDT 2011
On Thu, Oct 6, 2011 at 4:14 PM, <d74n5pohf9 at ipharzle.e4ward.com> wrote:
> On Sun, 2011-09-25 at 12:00 -0700, cairo-request at cairographics.org
> > 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 ???
> 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.
> > Thank you all for this great work around cairo.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cairo