home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
17 Bit Software 3: The Continuation
/
17-Bit_The_Continuation_Disc.iso
/
files
/
nz29a.dms
/
nz29a.adf
/
ShamView
/
Sliced.doc
< prev
next >
Wrap
Text File
|
1993-12-03
|
3KB
|
97 lines
Sliced Ham Converters
Copyright 1989 Rhett Anderson
All Rights Reserved
Revised Sept. 1, 1989
What's new:
converts gif pictures that aren't 320x200
converts gif pics that aren't 256 colors
includes interlace converter for really big pictures
shamview no longer busy-waits
shamview shows interlace and non-interlace SHAM pics
Hello Fellow Amiga Enthusiasts.
Introduction
Welcome to Sliced Ham. Over the last year I've been thinking about
writing a 24-bit paint program for the Amiga. Sliced Ham is a
byproduct of that product.
In effect, Sliced Ham gives you HAM images that lack the fringes so
commonly found in that mode. It works by changing the palette on each
and every scan line. 15 colors are changed each line during the
horizontal retrace period. It just so happens that there is precisely
enough time for these changes.
This package provides you with a way of looking at those great
256-color GIF files.
The programs are slow (at least until you've made it to the final
converted Sliced Ham pictures). They are currently written in M2Sprint
(not slouch speed-wise), but since they're so computation intensive,
I'm converting them to ML. So far the best I've been able to do is 14
seconds for an optimized 24-bit to Sliced Ham conversion. Many kinks
remain, however.
To use the program, type shamview filename, where filename is the
already-converted image.
To convert a GIF image, type giftotmp giffile tmpfile,
then supercon tmpfile.
Example:
giftotmp fish.gif fish.gif.tmp
supercon fish.gif.tmp
shamview fish.gif.tmp.sham
You'll probably want to rename the final file to fish.sham, to indicate that
it is a Sliced Ham picture.
If the picture has more than 399 lines vertically, you can use the program
lacecon instead of supercon. It will create an interlaced SHAM picture.
You'll need plenty of memory. If you have one meg, press CTRL-D when you
boot, you'll need all your memory.
Note
These programs are not in the public domain. Please distribute them
freely on bulletin boards an electronic services, but do not place
them on public domain or shareware disk collections. (Go ahead and
spread the programs to your friends, just make sure no money changes
hands. Also feel free to put these programs on the disks of user groups or
other not-for-profit Amiga groups.) I must make this rule because my job
depends on sales of our disk products. It doesn't make sense for me to
undercut myself.
If you're impressed by these pictures, just think--these are 256 color
images. You will be startled by the 4096-color ones captured by
digitizers and scanners.
Technical Note: An IFF Sliced Ham picture file looks just like any
other ILBM file. However, Sliced Ham pictures have an extra chunk
(called SHAM) consisting of a version word (currently 0), then 200
different palettes of 16 colors. Each color takes up a word and is in
the form 0rgb.
Rhett Anderson
Associate Editor
COMPUTE!'s Amiga Resource
324 W. Wendover Ave.
Greensboro, NC 27408
P.S. Thanks to the PLinkers for their suggestions and bug reports, and to
fellow Amiga programmers at C!AR (Denny Atkin, Troy Tucker, Tim Midkiff,
Randy Thompson, Dale McBane, Jim Fuchs) for their encouragement, and to my
fellow ASDF members, including John Toebes, Wes Howe, and Doug Walker, for
listening to my Sliced Ham discussion at the 1th Annual Guru Meditation.
And finally, thanks to John, Paul, George, and Ringo, who sang to me while
I worked.