georgew@tekig4.TEK.COM (George Walker) (04/19/87)
I got a copy of the Mark Johnson C compiler (shareware) that has been mentioned in this newsgroup. It's small, cheap, and quite usable, at least for small applications. I wrote a small program to shrink a Neo picture down, grayscale it, and print the small image anywhere on a page, using an Okimate 20 printer. It is described below, but I haven't posted the binary or source, since I doubt there's enough interest. Email me if you want a copy. /* * neoprint.c * * Read a low-resolution .neo file and send it to a 24-pin Okimate 20 * printer as a 320 x 200 monochrome array. A black and white picture * prints exactly, but for color pictures, gray scaling is done by * leaving out dots periodically, where the period depends on the color, * and is determined by the 30/59/11 RGB grayscale formula. Grayscale * dots can be randomized within the period to avoid moire patterns, * but my experience is that the moire patterns make it much easier to * see the original colors, so the default is to not randomize. * * Command line options allow tweaking the darkness for a color picture, * and moving the matrix horizontally by specifying the column offset. * To use the program, you must align the paper vertically by hand, and * use the -O option to tell how many horizontal columns to skip. From * a word processor standpoint, leave a rectangle 20 columns wide by 8 1/3 * lines high for the picture, which will take up 2" x 1 1/4" on paper. * The -D option sends diagnostic information to stdout, and prints the * name of the .neo file on the line above the printed picture. * * Usage: neoprint [-O offset] [-B blackness] [-D] [-R] file * * Written by George Walker for the Mark Johnson C compiler. * Placed in the public domain April, 1987. */ George S. Walker {decvax,hplabs,...}!tektronix!tekig4!georgew FLAMENET Tektronix, Inc. georgew@tekig4.TEK.COM DOMAIN (503) 627-4669 tekig4!georgew.tektronix@Udel-Relay ARPANET