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