[cairo] Fwd: New example to illustrate data buffer manipulation

Steve Moreau moreau.steve at free.fr
Tue Nov 6 02:50:59 PST 2012


Hi all,

Following the question I asked here :
http://lists.freedesktop.org/archives/cairo/2012-November/023716.html, I
tried to make an example to illustrate :
- several layers flattening with transparency
- direct data buffer manipulation

As far I know, there is no example to do that (
http://cairographics.org/samples/ ?), so feel free to made it available if
you think it could help someone.

$ gcc -Wall -I/usr/include/cairo -o DirectBufferManipulation
DirectBufferManipulation.c -lcairo &&  ./DirectBufferManipulation

or

$ gcc -Wall `pkg-config --cflags cairo` -o DirectBufferManipulation
DirectBufferManipulation.c `pkg-config --libs cairo` &&
./DirectBufferManipulation

See you,

Steve

[image: Images intégrées 3]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20121106/afa0321b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 2137 bytes
Desc: not available
URL: <http://lists.cairographics.org/archives/cairo/attachments/20121106/afa0321b/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DirectBufferManipulation.c
Type: text/x-csrc
Size: 2315 bytes
Desc: not available
URL: <http://lists.cairographics.org/archives/cairo/attachments/20121106/afa0321b/attachment.c>


More information about the cairo mailing list