Hi, I think XCBImageGetPixel should take const XCBImage*. It should be XCBImageGetPixel (const XCBImage *image, int x, int y) instead of XCBImageGetPixel (XCBImage *image, int x, int y) Or is there a specific reason for this? Orhun Birsoy