[cairo] Is Cairo able to fit my needs?

Carl Worth cworth at cworth.org
Wed Oct 3 14:37:47 PDT 2007


On Wed, 3 Oct 2007 22:01:32 +0200, "Innova-Studios - Juergen Ladstaetter" wrote:
> Ad 2) doesn’t that function set the whole graphic to that color?

No. cairo_fill just fills the current path, (just like the equivalent
operation in PostScript).

> Ad 3) normally when painting two things over each other, a logical function
> "COPY" is used. For displaying postscript there are also other functions
> needed.
> A small list of functions:
> wxAND                 src AND dst
> wxAND_INVERT          (NOT src) AND dst
> wxAND_REVERSE         src AND (NOT dst)
...

OK, if you want bitwise logical operators then you won't find them in
cairo. Many cairo output targets, (such as PostScript!), don't have
any notion of "bits" so such operations are not well-defined at all.

Cairo does have various operators, but they are the Porter/Duff
compositing operators, not bitwise arithmetic operators.

I hope that helps.

-Carl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.cairographics.org/archives/cairo/attachments/20071003/ed3303a5/attachment.pgp 


More information about the cairo mailing list