Hi!<br>In particular, is there any other example apart of the raster_source.c file from the test folder of the source code?<br><a href="http://cgit.freedesktop.org/cairo/tree/test/raster-source.c">http://cgit.freedesktop.org/cairo/tree/test/raster-source.c</a><br>
<br>I'm very interested on use this new feature but I'm a little lost on how to implement and adapt to my case.<br><br>Thanks!<br><br><div class="gmail_quote">2012/8/17 Carlos López González <span dir="ltr"><<a href="mailto:genetita@gmail.com" target="_blank">genetita@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi!<br>I have a function that provides a color for a given position:<br><br>Color get_color(Point &p)const;<br><br>
where Point is a convenience class for the double x and y user coordinates in the 2D space.<br><br>I think it is possible to generate a surface image from that function using the Raster Sources [1] API<br>
Is there any practical example of that?<br><br>Thanks!<br><br>[1] <a href="http://cairographics.org/manual/cairo-Raster-Sources.html" target="_blank">http://cairographics.org/manual/cairo-Raster-Sources.html</a><span class="HOEnZb"><font color="#888888"><br clear="all">
<br>-- <br>
Carlos<br><a href="http://synfig.org" target="_blank">http://synfig.org</a><br><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>Carlos<br><a href="http://synfig.org" target="_blank">http://synfig.org</a><br><br>