Using cairo-xlib to get screenshots

Oliver <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <CANuYhOsr59eRUHOGzpzx5ns1svN=jkw8+pLdJ49VxNEK9kLWWw@mail.gmail.com>
Hello!

I'm writing an application that needs to take screenshots and send them
over the network. I'm trying to use cairo_xlib_surface_create and then
cairo_surface_write_to_png[_stream]. I've managed to get cairo to write
proper png files, but they are all entirely black. Would really appreciate
any help in the matter.

I've created a small repository with the relevant code here:
https://bitbucket.org/oliveruv/native_capper/src

The relevant functions are captester.cpp::main, libsc.cpp::configure and
libsc.cpp::prntScreen. The stream writing things exhibit the same problem,
but are a bit less direct.

Warm regards,
Oliver Uvman

-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.