> I would like to know if any of guys could tell me the difference between
> XGetImage and XCreateImage ... by that I mean when do I use the one or the
> other!
> 
> Here's my problem:
> I've noticed that XGetImage doesn't set the color masks (they're all zeros
> even for 16 bpp...)

Hmmm.  According to the docs, that would even be correct; XGetImage
is only supposed to set the 'depth' member :-/

This means that you probably should replace the XGetImage calls
with XCreateImage followed by XGetSubImage (of the whole image) ...

Bye,
Ulrich

-- 
  Ulrich Weigand,
  IMMD 1, Universitaet Erlangen-Nuernberg,
  Martensstr. 3, D-91058 Erlangen, Phone: +49 9131 85-27688

Reply via email to