[Xcb] xcb_put_image

Matthew Allen fret at memecode.com
Sun Dec 14 17:06:01 PST 2008

---------- Original Message ----------
To: Xcb (xcb at freedesktop.org)
From: Matthew Allen (fret at memecode.com)
Subject: [Xcb] xcb_put_image
Date: 15/12/2008 11:56:17a

> What sort of bitmap organization is need to supply bitmap data to 
> xcb_put_image? 
> I initially allocated a single block of memory, where 'x', 'y' are the 
> dimensions of my bitmap and 'Bits' is the bits per pixel:
> 	Line = ((x * Bits) + 7) / 8;
> 	Mem = new uint8[Line * y];

Furthur to this, I think part of the issue is that my x server is reporting 24 bits/pixel as the root depth but expecting 32 bits/pixel in a xcb_put_image... maybe?

Is there anyway to get the expected bit depth of a full color pixmap?
Matthew Allen

More information about the Xcb mailing list