Path: utzoo!attcan!uunet!cs.utexas.edu!sun-barr!apple!bloom-beacon!EXPO.LCS.MIT.EDU!rws From: rws@EXPO.LCS.MIT.EDU Newsgroups: comp.windows.x Subject: Re: DirectColor from xwd? Message-ID: <8905241253.AA00853@expire.lcs.mit.edu> Date: 24 May 89 12:53:34 GMT References: <3279@ncar.ucar.edu> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 11 Would someone please describe the DirectColor/TrueColor data format from an xwd dump. (I wish to convert output from an Ardent Titan to another format.) The data values in the image are pixels, just like for any other format. You can use the red/green/blue_mask values in the header to decompose the pixels into separate primaries. In the case of DirectColor, the R3 xwd doesn't provide you with the colormap contents, so you just have to assume that it's a direct ramp the same as TrueColor, that only gamma correction was involved. The R4 xwd will provide you the colormap contents.