Xref: utzoo comp.sys.apollo:5560 comp.windows.x:23183 Path: utzoo!attcan!uunet!tut.cis.ohio-state.edu!ucsd!swrinde!zaphod.mps.ohio-state.edu!sdd.hp.com!apollo!apollo.hp.com!rlr From: rlr@apollo.HP.COM (Robert Raymond) Newsgroups: comp.sys.apollo,comp.windows.x Subject: Re: colour table of an xy image by xwd Message-ID: <4aff9136.20b6d@apollo.HP.COM> Date: 14 Jun 90 15:55:00 GMT References: <1629@ccadfa.adfa.oz.au> Sender: root@apollo.HP.COM Reply-To: rlr@apollo.HP.COM (Robert Raymond) Organization: Hewlett-Packard Apollo Division - Chelmsford, MA Lines: 37 In article <1629@ccadfa.adfa.oz.au>, gyp@maadfa.ma.adfa.oz.au (Patrick Tang Guan Yaw) writes: |> |> I am running X11R3 on an apollo DN580 8-bit plane machines. |> At the moment, I am trying to get a colour dump using |> |> % xwd -xy -out pic.xy |> |> so that I can translate that to Encasuplated Colour PostScript. |> (Using cxpr, a modified verison of xpr). However, my effort is |> not successful on the DN580. I found out the following, |> |> - xwud of pic.xy give me the correct colours. |> - octal dump of pic.xy using |> |> % od -hv pic.xy |> |> tell me that there are only two colours on the dump image, namely |> red and white, though xwud shows me that there are 256 colours, the |> rest of the colours are (0,0,0)?? If you are running the share mode server, the problem is that X in not aware of DM colors (or any colors allocated via gpr,ctm). xwd calls XQueryColors to get the colors that are used. For colors not allocated 0,0,0 (black) is returned and recorded in the dump file. xwud displays the correct colors because it ignores the colors and just dumps the pixel values into the image when the default visual is the same as the visual when the window was dumped. Bottom line: XQueryColor has been changed so that colors not allocated by X are read from the physical color table. This fix will be in the next system release. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Rob Raymond Internet: rlr@apollo.hp.com Hewlett-Packard GTD East UUCP: {mit-eddie,yale,uw-beaver}!apollo!rlr Chelmsford, MA 01824 Phone: (508) 256-6600