title: Screenshots in X11
body: <p>What functions would one use to take a screenshot of an X11 desktop, using the Xlib library? I would prefer a method that's more efficient than getting individual pixels. <strong>Thanks.</strong></p>