Re: Layered stroke / fill

Lockert Fredrick <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <CAPBD81XNQquUtus_k2OTwJ5q5Ee-4J9Erf_hwaUn7u7Mma_S7g@mail.gmail.com>
On 19 August 2012 20:56, Chris Wilson <[email protected]> wrote:
> Just stroke and fill each rectangle individually. Adding all rectangles
> to the path then calling stroke/fill operates on the union of that path.
> So,
>   foreach (rect) {
>     cr->rectangle(*rect)
>     cr->set_source_rgb(*stroke_color)
>     cr->stroke_preserve()
>     cr->set_source_rgb(*fill_color)
>     cr->fill()
>   }

Thanks a lot mate! That gave the desired effect I was looking for.

Cheers,
Fredrick
-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.