home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CDPD Public Domain Collection for CDTV 2
/
CDPD_II_2352.bin
/
scope
/
151-175
/
scopedisk172
/
iize
/
iconize.docs
< prev
next >
Wrap
Text File
|
1992-10-27
|
12KB
|
215 lines
-----------------------------------------------------------------------------
| |
| I C O N I Z E |
| (v.935) |
| Copyright (C) 1990, Rick Tillery, all rights reserved |
| |
| |
-----------------------------------------------------------------------------
| This program is release into the public domain as long as all files |
| listed below are included in each transfer. The source code is not |
| included, but if you REALLY want to know how I did this, drop me a line |
| and I'll send you a copy. |
-----------------------------------------------------------------------------
OK, here's the deal: I have lots of IFF pictures that I love to show off. I
usually use a graphical shell to show them because it's
easier and the stupid icons that paint programs use are
ugly. Now 2.0 MAY be coming out soon and I am working
with a developer in beta testing it and it came to me
that the built in 16 color (or 8 color or even 2 color)
WorkBench would be a perfect oportunity to create some
better icons.
First I developed a palette from the basic 2.0 palette of a medium grey,
black, white, and a pastel blue. I extended it to 16 colors to 15 grey
shades and the blue in a way which allows the 16 color icons to be viewed in
the reduced color modes with some semblance of legibility. With this palette
I used several commercial products to shrink, convert to grey scale and remap
my pictures into brushes with this palette. Then I used the Icon Editor in
2.0 to make them into icons (YES! 2.0 allows you to load IFF brushes as
icons).
This took quite a bit of work, but I was so pleased with the results that I
couldn't resist trying my hand at a program which would automate this
creation of icons from IFF pictures.
Iconize (v.935) is the result (so far).
-----------------------------------------------------------------------------
Included here: Iconize (v.935) - the program itself (executable)
Iconize.docs - the docs you are reading
IFF.library - a public domain IFF handling library
IFFlibrary.Readme - info on IFF.library
For WB 2.0 users only: PaletteScreen - a Screenshot showing how good
-(but you WB 1.3 users these icons can look and also
can look at this to providing the appropriate color
get an idea of how palette. In 2.0 select ScreenMode
GREAT your icons will in the prefs drawer and change to
look!)- 16 colors. Then select palette
and use the pulldown menu to load
in the palette of the
"PaletteScreen".
For WB 1.3 users only: Xcolour & Planes - two WB hacks to allow adding
bitplanes to your WB screen
(Planes is already hacked with
appropriate colors so the
icons mentioned were not
included since they wouldn't
have worked with this
palette).
Planes.ReadMe & XColour.doc - you guessed it!
SetColor - reads in contents of Color.palette
file and sets WB color registers from
it
SaveColor - saves a Color.palette file using
current WB color registers
Color.palette - an appropriate palette file
What is required: One Amiga computer (not included)
At least one IFF file (not included)
Iconize and support files (included)
Some time (more for bigger pics less for smaller
ones, I'm working on speeding this up!)
(.935 is 325% faster than .90 was!)
-----------------------------------------------------------------------------
Destructions:
Iconize is a simple program that will convert your IFF files
into small project icons of 16, 8, 4(ugh), or 2(yech!) colors
from a standard palette. You may specify the number of bitplanes
(number of colors = 2 raised to the power of the number of
bitplanes), the stack size, the default tool, the width and the
height of the icon.
The palette is included in the PaletteScreen file so you can
load it into the palette command under 2.0. However, you may use
this same palette under 1.3 normally or with a WorkBench hack for
increasing (or decreasing) the number of bitplanes in your WB
screen. For those of you in the latter case, your palette should
consist of the first n values in the following list (where n is
the number of colors on your WorkBench screen):
(hex values) AAA, 000, FFF, 679, <--(this one is not
unique and is up
to you)
888, 333, DDD, 666,
BBB, 222, EEE, 555,
999, 444, CCC, 777
Just load these values in as your palette in whatever way is
specified by the particular hack you are using.
To make things easier, I've located and included two of these
screen hacks and their appropriate support files. If you have a
better WB hack than those included (maybe one that won't crash on
an accelerated machine) use the above technical info, and please
contact me so I can distribute it with my program. Otherwise,
just use the included hacks.
Usage: To use Iconize you must first install the iff.library in your
libs: device (this should not interfere with the 2.0
iffparse.library). (Some users have had problems if they had an
earlier version of iff.library in their system and then replaced
it with this version. The problem is that a program run before
Iconize that opens that library, even if it closes it, will leave
the library in memory and when Iconize tries to open it the OS
will find the one still in memory first and bail out because the
version is wrong. To avoid this, if you already have an
iff.library in your libs: device, replace it with this version
and then re-boot.) Next be sure that Iconize is in your path
somewhere. Now you are ready to attack those IFF files.
Note: One user couldn't get any icons to save, but he finally
realized that he had a no-icon program running in his
startup-sequence and thus disabled my program. :-)
Syntax: Iconize [filename(s)] an optional list of filenames
[directory(ies)] an optional list of directories to
Iconize
[-dDefaultToolType] allows specification of the default
tool for the project icon (i.e.
-dc:superview would make c:superview
the default tool)
[-i] indicates that all following files or directory
contents will be ignored if they have an associated
icon (.info file). This is especially useful for
adding pictures to that picture directory and just
Iconize-ing the new pics.
[-p#BitPlanes] allows specification of the number of
bitplanes in the icon (i.e. -p3 would
specify an 8 color icon) {default is 16
color icon}
[-sStackSize] allow specification of the stack size
provided to the default tool {default stack
is 4000}
[-xIconWidth] allows specification of the width of the
resulting icon (i.e. -x128 would specify a
width of 128 for the icon) {default width
is 64}
[-yIconHeight] allows specification of the height of the
icon
-------------------------------------------------------------------------------
Upgrades: v.90 - first release into gamma testing
v.935 - 325% speed up!
"-i" option added
Ability to name directories with contents to Iconize
Defaults to usage info rather than attempting to Iconize
entire current directory.
Please report any bugs to me and try to supply a copy of the problem causing
file if you can.
-------------------------------------------------------------------------------
Future enhancements: Not rely on iff.library which wastes memory.
Handle SHAM, Dynamic HAM and Dynamic Hi-Res pictures.
Increase speed by converting entire processing heart
to assembly.
Possibly adding rudimentary brightness control and
maybe possibly adding even more rudimentary contrast
control.
Even less likely than contrast, but still a possibilty
of adding intuition interface.
Add processing pointer to show status while Iconize-ing.
-------------------------------------------------------------------------------
Report any bugs and send any awe inspiring IFF files or donations [not
requested but any and all accepted :-) ] to:
Rick Tillery
{until May 1991}
(405) 364-2372 (collect not accepted :-)
314 E. Boyd #7
Norman, OK, 73069
UseNet: drtiller@uokmax.ecn.uoknor.edu
{after May 1991}
5000 Ryan Dr.
OKC, OK 73135
Cserve: 71020,1554
GEnie: D.TILLERYJR
Plink: WEL655