xpmtoims.icn: Program to make Icon images from XPM files

May 23, 1996; Gregg M. Townsend
Requires: Version 9 graphics
This file is in the public domain.
Usage:  xpmtoims [-d] [-gn | -cn] [file...]

Xpmtoims reads XPM files and writes Icon image strings.
-cn or -gn selects the color palette used; -c1 is the default.
If -d is given, each image is displayed in a window after conversion.

Output is a file of Icon source code suitable for use via $include.
Each image is a string constant with a comment.
Multiple images are separated by commas.

(A window is always required, whether or not anything is displayed,
 so that the XPM colors can be converted by the window system.)

Source code | Program Library Page | Icon Home Page