From: jwright@keck.ucsf.edu (Jim Wright)
Subject: Re: XWD incompatibilities...
Date: 1995/11/05 [thread overview]
Message-ID: <jwright.815543636@amadeus.ucsf.edu> (raw)
In-Reply-To: 478v06$bi0@zuul.nmti.com
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 <X11/Xmd.h>
* 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
prev parent reply other threads:[~1995-11-05 5:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-11-01 5:00 XWD incompatibilities Peter da Silva
1995-11-05 5:00 ` Jim Wright [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox