[cairo] Hit test path area recipe

Donn donn.ingle at gmail.com
Fri Nov 9 09:10:20 PST 2007

> Doesn't this work?
> someotherpath = cr.copy_path_flat()
> <draw other stuff>
> cr.append_path(someotherpath)
> result = cr.in_fill()
Interesting. I don't know. My situation calls for the hit test to be done in 
another function, because it's a retained mode canvas that I'm writing, so 
doing the test "in context" so-to-speak is not the right place to do it. But 
I'm always surprised at what Cairo can do.

I'll give it a go. Thanks.


More information about the cairo mailing list