Re: Raster Sources example
Carlos López González <[email protected]>
| Newsgroups | gmane.comp.lib.cairo |
|---|---|
| Message-ID | <CAF52pzL6YyLg68Tuu=97Vfe3XzQxDnB-r2iG0636EB_RNbcNyQ@mail.gmail.com> |
Hi! In particular, is there any other example apart of the raster_source.c file from the test folder of the source code? http://cgit.freedesktop.org/cairo/tree/test/raster-source.c I'm very interested on use this new feature but I'm a little lost on how to implement and adapt to my case. Thanks! 2012/8/17 Carlos López González <[email protected]> > Hi! > I have a function that provides a color for a given position: > > Color get_color(Point &p)const; > > where Point is a convenience class for the double x and y user coordinates > in the 2D space. > > I think it is possible to generate a surface image from that function > using the Raster Sources [1] API > Is there any practical example of that? > > Thanks! > > [1] http://cairographics.org/manual/cairo-Raster-Sources.html > > -- > Carlos > http://synfig.org > > -- Carlos http://synfig.org -- cairo mailing list [email protected] http://lists.cairographics.org/mailman/listinfo/cairo