[cairo] Raster Sources example

Carlos López González genetita at gmail.com
Mon Aug 20 02:56:21 PDT 2012


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 <genetita at gmail.com>

> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20120820/328d48b5/attachment.html>


More information about the cairo mailing list