[cairo-bugs] [Bug 55836] cairo_region cannot be used with CLIP, as NO public API is exposed to use it in cairo_context/surface

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Oct 10 04:14:04 PDT 2012


https://bugs.freedesktop.org/show_bug.cgi?id=55836

--- Comment #2 from Adhir <adhir.garg at gmail.com> ---
No, I am looking for function like
cairo_bool_t
cairo_clip_region (cairo_t        *cr,
                   cairo_region_t *region)
as mentioned in http://www.gtkforums.com/viewtopic.php?f=3&t=54873
Thanks to Carlos for giving me the link

(In reply to comment #1)
> What you want is a cairo_append_region() convenience function:
> 
> for (i in cairo_region_num_rectangles())
>   cairo_rectangle(cr, cairo_region_get_rectangle(i));

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo-bugs/attachments/20121010/821073ad/attachment.html>


More information about the cairo-bugs mailing list