Re: How to texturing a self-defined pattern(or image) along line and fill a polygon?

Petr Kobalíček <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <CAB2Z3OcHZVsCM_VuVJT6uui1hdizgHpz3GO2kXPpB2+4AbRG-A@mail.gmail.com>
Check out antigrain (https://github.com/oncaphillis/agg), it has this
feature and it's public domain.

On Fri, Dec 4, 2015 at 8:56 PM, Lawrence D'Oliveiro <[email protected]
> wrote:

> On Fri, 04 Dec 2015 14:53:56 +0800, [email protected] wrote:
>
> > I want to use cairo to draw vector-maps, and it shows the strong
> > ability to draw lines and polygons etc., but now I need to texturing
> > a self-defined pattern(may like -^--^--^--^-) along a winding line
> > and fill polygon with it, how should I do?
>
> You could flatten the path to a sequence of straight lines. Then do
> your own patterning along each of those straight lines.
> --
> cairo mailing list
> [email protected]
> http://lists.cairographics.org/mailman/listinfo/cairo

-- 
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.