From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,db7667a1bcf27ffb X-Google-Attributes: gidfee84,public From: jwright@keck.ucsf.edu (Jim Wright) Subject: Re: XWD incompatibilities... Date: 1995/11/05 Message-ID: #1/1 X-Deja-AN: 118673573 references: <478v06$bi0@zuul.nmti.com> organization: UCSF, ITS newsgroups: comp.unix.osf.osf1 peter@nmti.com (Peter da Silva) writes: >The xwd format generated by DEC's "xwd" binary on OSF/1^H^H^H^H^HDigital >UNIX doesn't seem compatible with anyone else's XWD anywhere in the world. >From /usr/include/X11/XWDFile.h /* * This is not portable between machines of differing word sizes. To make * it portable, do the following things: * * o #include * o remove the typedef for xwdval * o replace all instances of xwdval with the appropriate CARD32 ... B32 * o make sure that XWDFileHeader is padded to quadword boundaries * o make sure the window name is written out quadword aligned * o create an XWDColor structure that contains the same fields as XColor * but which is defined in terms of CARD32 B32, CARD16 B16, and CARD8 * o convert XColor structures to XWDColor structures in xwd * o remove all xwdval casts from xwd * o pack image data before writing out if necessary * o replace casts from xwdval objects in xwud with cvtINT macros * o convert XWDColor structures to XColor structures * o unpack data after reading in if necessary */ >Suggestions? I'm running xwpick but it seems to be messing up. I punted. When I need interoperability I use something like xv. -- Jim Wright Keck Center for Integrative Neuroscience jwright@phy.ucsf.edu Box 0444, Room HSE-802 voice 415-502-4874 513 Parnassus Ave fax 415-502-4848 UCSF, San Francisco, CA 94143-0444