summaryrefslogtreecommitdiff
path: root/ipl/gprogs/xbm2pat.icn
blob: c8dc41342bf557dc37878cec5f6648e15d31cb90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
############################################################################
#
#	File:     xbm2pat.icn
#
#	Subject:  Program to convert XBM file to pattern specification
#
#	Author:   Ralph E. Griswold
#
#	Date:     August 14, 1996
#
############################################################################
#
#   This file is in the public domain.
#
############################################################################
#
#  This program converts an XBM file to a pattern specification.
#
############################################################################
#
#  Links: patutils
#
############################################################################

link patutils

procedure main(args)
   local input, rlist

   input := open(args[1]) | stop("*** cannot open image file")

   rlist := []
   every put(rlist, xbm2rows(input))
   write(rows2pat(rlist),"	# ", args[1])

end