home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / windows / x / motif / 5560 < prev    next >
Encoding:
Internet Message Format  |  1992-08-12  |  823 b 

  1. Path: sparky!uunet!gatech!bloom-beacon!eru.mt.luth.se!lunic!sunic!aun.uninett.no!alf.uib.no!cmi.no!pererik
  2. From: pererik@cmi.no (Per-Erik Nordbo)
  3. Newsgroups: comp.windows.x.motif
  4. Subject: Re: Displaying image in Motif
  5. Message-ID: <1992Aug12.123920.29124@alf.uib.no>
  6. Date: 12 Aug 92 12:39:20 GMT
  7. References: <Jra-Kh+@engin.umich.edu>
  8. Sender: usenet@alf.uib.no (Bergen University Newsaccount)
  9. Organization: Chr. Michelsen Institute
  10. Lines: 10
  11.  
  12. If you wan't to minimize software development, you may use external image decoders through popen() like the following:
  13.  
  14. char string[100];
  15. sprintf(command, "imgtoppm | ppmtoxwd < %s", filename);
  16. fd = popen("imgtoppm | ppmtoxwd < picture.img");
  17.  
  18. and write your own xwd decoder internally or look at the xwud.c program: mit/clients/xwud/xwd.c
  19.  
  20. --
  21. Per Erik Nordboe, CMI, pererik@cmi.no
  22.