From owner-freebsd-hackers Sun Apr 14 09:24:04 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id JAA15508 for hackers-outgoing; Sun, 14 Apr 1996 09:24:04 -0700 (PDT) Received: from bacall.lodgenet.com (bacall.lodgenet.com [205.138.147.242]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id JAA15470 for ; Sun, 14 Apr 1996 09:24:00 -0700 (PDT) Received: (from mail@localhost) by bacall.lodgenet.com (8.6.12/8.6.12) id LAA24469 for ; Sun, 14 Apr 1996 11:24:05 -0500 Received: from tserv.lodgenet.com(204.124.120.10) by bacall via smap (V1.3) id sma024466; Sun Apr 14 11:23:41 1996 Received: from jake.lodgenet.com (jake.lodgenet.com [204.124.120.30]) by tserv.lodgenet.com (8.6.12/8.6.12) with ESMTP id KAA20011; Sun, 14 Apr 1996 10:44:55 -0500 Received: from localhost (localhost [127.0.0.1]) by jake.lodgenet.com (8.7.5/8.6.12) with SMTP id KAA03096; Sun, 14 Apr 1996 10:46:19 -0500 (CDT) Message-Id: <199604141546.KAA03096@jake.lodgenet.com> X-Authentication-Warning: jake.lodgenet.com: Host localhost [127.0.0.1] didn't use HELO protocol To: Charles Henrich cc: freebsd-hackers@freebsd.org Subject: Re: XImage to PPM routine? In-reply-to: Your message of "Sat, 13 Apr 1996 23:04:37 EDT." <199604140304.XAA02547@crh.cl.msu.edu> Date: Sun, 14 Apr 1996 10:46:19 -0500 From: "Eric L. Hernes" Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Charles Henrich writes: >Does anyone out there have a generic XImage to PPM (or to anything) routine >available that works for both 8 and 16 bits resolution? doesn't XpmWriteFileFromImage(), from the Xpm library do that? I've used it to unroll animations from inside xanim, and in Amancio's tv program. Both 8 and 15 bpp, 16 shouldn't be a problem (I think) look in xpm.h for arguments, etc. I usually use NULL for both shapeimage and attributes. > >-Crh > > Charles Henrich Michigan State University henrich@msu.edu > > http://pilot.msu.edu/~henrich > eric.