Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Apr 1996 10:46:19 -0500
From:      "Eric L. Hernes" <erich@lodgenet.com>
To:        Charles Henrich <henrich@crh.cl.msu.edu>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: XImage to PPM routine? 
Message-ID:  <199604141546.KAA03096@jake.lodgenet.com>
In-Reply-To: Your message of "Sat, 13 Apr 1996 23:04:37 EDT." <199604140304.XAA02547@crh.cl.msu.edu> 

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199604141546.KAA03096>