Path: utzoo!utgpu!watmath!clyde!att!rutgers!mit-eddie!uw-beaver!rice!sun-spots-request
From: rbj@nav.icst.nbs.gov (Root Boy Jim)
Newsgroups: comp.sys.sun
Subject: Huge icons on Sun
Message-ID: <8811181800.AA00461@nav.icst.nbs.gov>
Date: 2 Dec 88 06:40:36 GMT
Sender: usenet@rice.edu
Organization: Rice University, Houston, Texas
Lines: 18
Approved: Sun-Spots@rice.edu
Original-Date: Fri, 18 Nov 88 13:00:44 EST
X-Sun-Spots-Digest: Volume 7, Issue 32, message 14 of 17

My favorite technique is to glom icons together with emacs. Here is a
brief explanation of what you must do. The standard 64x64 icon seems to be
formatted as 32 lines of 8 16 bit numbers. Each line will create two scan
lines of the icon. First, take your four favorite icons and reformat them
to form 64 lines of 4 16 bit numbers. This changes nothing, but now each
line produces only one scan line of the icon. Strip the headers off each
one. I am going to call the {upper,lower}{left,right} icons UL, UR, LL,
and LR. Now 'cat UL LL > LEFT; cat UR LR > RIGHT'.  Then 'pr -m LEFT RIGHT
> WHOLE', or use emacs' yank-rectangle. Finally, fix up any missing
commas, and prepend this header line:

/* Format_version=1, Width=128, Height=128, Depth=1, Valid_bits_per_item=16
 */

It is left as an exercise how to create 3x3, 4x4, etc., icons.

	(Root Boy) Jim Cottrell	(301) 975-5688
	 or