[cairo] How to texturing a self-defined pattern(or image) along line and fill a polygon?

quanzhao198757 at sina.com quanzhao198757 at sina.com
Sat Dec 5 15:06:17 PST 2015


Thanks a lot! I found artigrain is great, it is exactly what I need, though now I can not visit the website 'http://www.antigrain.com/' in China, I will go to purchase a proxy to make it and have a try to use artigrain in my project.
> Date: Sat, 5 Dec 2015 12:24:25 +0100> From: Petr Kobalíček <kobalicek.petr at gmail.com>> To: "Lawrence D'Oliveiro" <ldo at geek-central.gen.nz>> Cc: cairo list <cairo at cairographics.org>> Subject: Re: [cairo] How to texturing a self-defined pattern(or image)> along line and fill a polygon?> Message-ID:> <CAB2Z3OcHZVsCM_VuVJT6uui1hdizgHpz3GO2kXPpB2+4AbRG-A at mail.gmail.com>> Content-Type: text/plain; charset="utf-8"> 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 <ldo at geek-central.gen.nz> > wrote:> > On Fri, 04 Dec 2015 14:53:56 +0800, quanzhao198757 at sina.com 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> > cairo at cairographics.org> > http://lists.cairographics.org/mailman/listinfo/cairo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20151206/a9376cd6/attachment.html>


More information about the cairo mailing list