summaryrefslogtreecommitdiff
path: root/ipl/gpacks/weaving/ims2pat.icn
diff options
context:
space:
mode:
Diffstat (limited to 'ipl/gpacks/weaving/ims2pat.icn')
-rw-r--r--ipl/gpacks/weaving/ims2pat.icn42
1 files changed, 42 insertions, 0 deletions
diff --git a/ipl/gpacks/weaving/ims2pat.icn b/ipl/gpacks/weaving/ims2pat.icn
new file mode 100644
index 0000000..4ded94a
--- /dev/null
+++ b/ipl/gpacks/weaving/ims2pat.icn
@@ -0,0 +1,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