title: How can I get X11 screen buffer (or how can I get X11 to write to /dev/fb0)
body: <p>I'm trying to get pixel data from my X11 instance, I've seen this thread (<a href="https://stackoverflow.com/questions/8249669/how-do-take-a-screenshot-correctly-with-xlib">How do take a screenshot correctly with xlib?</a>) and the double for loop is taking just too long for me (over a million loops, as the system I'm building requires the highest amount of efficiency possible, sitting around for 600 miliseconds is just not an option). Is there no way to just get a raw array of pixels to avoid the for loop? I know the XImage class has a "data" member which is supposed to contain all of the pixels, but the organizational system that it uses is foreign to me. Any help would be greatly appreciated! The best end game here would be for me to just be able to have X11 write directly to /dev/fb0</p>