Article View: comp.sys.atari.st
Article #26392a utility to shrink and print a .neo file
From: George Walker
Date: Sun, 19 Apr 1987 06:16
Date: Sun, 19 Apr 1987 06:16
37 lines
2621 bytes
2621 bytes
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
Technical Details
Message-ID:
<1423@tekig4.TEK.COM>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!seismo!rutgers!mit-eddie!uw-beaver!tektronix!tekig!tekig4!georgewShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!rutgers!mit-eddie!uw-beaver!tektronix!tekig!tekig4!georgew From: georgew@tekig4.TEK.COM (George Walker) Newsgroups: comp.sys.atari.st Subject: a utility to shrink and print a .neo file Message-ID: <1423@tekig4.TEK.COM> Date: Sun, 19-Apr-87 01:16:36 EST Article-I.D.: tekig4.1423 Posted: Sun Apr 19 01:16:36 1987 Date-Received: Sun, 19-Apr-87 17:43:54 EST Reply-To: georgew@tekig4.UUCP (George Walker) Distribution: na Organization: Oregon Home for Orphaned Responses Lines: 37 Keywords: okimate 20, Mark Johnson C compiler, Neo