blob: 4ded94a45ad6e159fab92b31cb0cde3026acf90f (
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
37
38
39
40
41
42
|
############################################################################
#
# File: ims2pat.icn
#
# Subject: Program to convert image string to bi-level pattern
#
# Author: Ralph E. Griswold
#
# Date: February 9, 1999
#
############################################################################
#
# This file is in the public domain.
#
############################################################################
#
# AD HOC
#
############################################################################
#
# Requires:
#
############################################################################
#
# Links: imrutils, imsutils, patutils
#
############################################################################
link imrutils
link imsutils
link wopen
procedure main()
local imr
imr := imstoimr(read())
imropen(imr)
write(pix2pat(&window, 0, 0, WAttrib("width"), WAttrib("height")))
end
|