blob: 599ae3ee81cb464a4a5e849701386601fa33caaa (
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: April 20, 2000
#
############################################################################
#
# This file is in the public domain.
#
############################################################################
# This program converts an image string with the g2 palette to a
# bi-level pattern.
#
############################################################################
#
# Requires: Version 9 graphics
#
############################################################################
#
# Links: imrutils, imsutils, wopen
#
############################################################################
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
|