Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!i2unix!inria!mirsa!modja.inria.fr!lehors From: lehors@modja.inria.fr (Arnaud Le Hors) Newsgroups: comp.windows.x Subject: How do pixels must be packed? Keywords: pixels Message-ID: <1990Aug27.185829@modja.inria.fr> Date: 28 Aug 90 16:22:29 GMT Sender: news@mirsa.inria.fr Reply-To: lehors@modja.inria.fr (Arnaud Le Hors) Organization: Koala Project, Bull Research France Lines: 19 Trying to send a pixmap to a server on a monochrome display (visual->class == StaticGray && visual->depth == 1) I've been looking around and found out in the source of xloadimage written by Jim Frost the following comment: /* if the destination depth is not a multiple of 8, then we send each * plane as a bitmap because otherwise we would have to pack the pixel * data and the XImage format is pretty vague about how that should * be done. this is not as fast as it would be if it were packed but * it should be a lot more portable and only slightly slower. */ Isn't there really no standard way to do this ? I'll appreciate any hint, thanks in advance. -- Arnaud LE HORS BULL Research FRANCE -- Koala Project | Email : lehors@mirsa.inria.fr Inria - Sophia Antipolis | Phone : (33) 93 65 77 71 2004, Route des Lucioles | Telex : 97 00 50 F 06565 Valbonne CEDEX France | Fax : (33) 93 65 77 66