home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
historic
/
v941.tgz
/
icon.v941src.tar
/
icon.v941src
/
ipl
/
gprogs
/
ims2pat.icn
< prev
next >
Wrap
Text File
|
2000-07-29
|
1KB
|
43 lines
############################################################################
#
# 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