summaryrefslogtreecommitdiff
path: root/ipl/gpacks/weaving/ims2pat.icn
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2013-01-27 23:51:56 +0000
committerIgor Pashev <pashev.igor@gmail.com>2013-01-27 23:51:56 +0000
commit6ab0c0f5bf14ed9c15370407b9ee7e0b4b089ae1 (patch)
tree926065cf45450116098db664e3c61dced9e1f21a /ipl/gpacks/weaving/ims2pat.icn
downloadicon-6ab0c0f5bf14ed9c15370407b9ee7e0b4b089ae1.tar.gz
Initial upstream version 9.4.3upstream/9.4.3
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