[cairo-bugs] [Bug 55836] New: 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 03:55:30 PDT 2012


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

          Priority: medium
            Bug ID: 55836
          Assignee: cworth at cworth.org
           Summary: cairo_region cannot be used with CLIP, as NO public
                    API is exposed to use it in cairo_context/surface
        QA Contact: cairo-bugs at cairographics.org
          Severity: critical
    Classification: Unclassified
                OS: Mac OS X (All)
          Reporter: adhir.garg at gmail.com
          Hardware: All
            Status: NEW
           Version: 1.12.2
         Component: general
           Product: cairo

In Cairo release 1.10.0, cairo_region_t data type was added.
However pixman was removed.
Now there is no way to use cairo_region_t in cairo_context. So cairo_region is
just a reflection of rectangles.

Setting the CLIP region to the cairo_region is not possible. So if we have a
cairo_region_t created after union, subtract, we cannot use it for clipping
purposes.

Currently cairo_clip(_preserve) can use ONLY path, but cannot make use all
rectangles (obtained from cairo_region_t).

By some or other way, we need to create/expose a function 
cairo_clip_intersect_to_region (cairo_region_t      *region), which would clip
according to PATH and INTERSECT with region

-- 
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/bf488a9b/attachment.html>


More information about the cairo-bugs mailing list