X11.XImage image = x11.XCreateImage(dpy, xwa.visual,
32, X11.ZPixmap,
0, buffer, w, h, 32, w*4);
buffer.write(0, pixels, 0, pixels.length);
write = System.currentTimeMillis();
x11.XPutImage(dpy, win, gc, image, 0,0,0,0,w,h);
x11.XFree(image.getPointer());
putImageTime = System.currentTimeMillis();
}
finally {
if (gc != null)