Ximage's byte_order field
Peter Harris
pharris at opentext.com
Mon Feb 23 09:37:16 PST 2009
McDonald, Michael-p7438c wrote:
> Am I allowed to change the value of the XImage byte_order field? And if
> I do, will subsequent XPutImage() calls do the "right thing"?
Yes, you can change the byte_order field to match the byte order of your
image. XPutImage will take care of swapping your bits around to match
what the server expects.
See:
http://cgit.freedesktop.org/xorg/lib/libX11/tree/src/PutImage.c
particularly the function "SendZImage", if you want the gory details.
Peter Harris
--
Open Text Connectivity Solutions Group
Peter Harris http://www.opentext.com/connectivity
Research and Development Phone: +1 905 762 6001
pharris at opentext.com Toll Free: 1 877 359 4866
More information about the xorg
mailing list