home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 10
/
amigaformatcd10.iso
/
-in_the_mag-
/
emulation
/
mac2ni
/
mac2ni.man
< prev
next >
Wrap
Text File
|
1995-11-30
|
3KB
|
69 lines
MAC2NI(7) MAC2NI(7)
NNAAMMEE
mac2ni - convert macintosh icons to newicons
SSYYNNOOPPSSIISS
mac2ni FROM/A,TO/A,COPYFROM/A,VERBOSE/S,NORSRCID/S,NOSELECTED/S
DDEESSCCRRIIPPTTIIOONN
MAC2NI is a icon converter. It was developed by Daniel Balster to extract one
bloody icon, but it was too hard for him to repaint it using an icon editor. So
he wrote MAC2NI.
MAC2NI scans a given resource fork of a macintosh file and saves all icl8
resources it can find. for each icl8 ID there must be a matching ICN# resource
or the conversion fails. the ICN# resource type is used to mask the chunky icl8
image and make it transparent. MacOS icons are always remapped to a static 256
color palette, the system palette. In order to reduce space, a "Count Colors"
operator and a "Remap Colors" operator is applied over all icon images. Using
this techniques only as much color palette entries need to be saved as used.
Furthermore, MacOS icons do not have a second image like Amiga icons. This is
generated by applying a ghosted mask over the "normal" image and save it as the
"selected" image. For the ghosted mask always the darkest palette entry is
used, this one is found by weighting all left palette entries. Because one
single MacOS resource fork can contain more than one icon image, the icons are
saved using their unique IDs.
6 December 1996 1
MAC2NI(7) MAC2NI(7)
IINNVVOOKKIINNGG MMAACC22NNII
There are some options you have to learn:
FROM/A the filename of the resource fork of a MacOS file
TO/A an existing pathname and a basename where to write the new-
icons. after the basename a ".id" is appended for each icon.
COPYFROM/A an existing amiga icon (no need to be a newicon) from which
to take STACKSIZE, TOOLTYPES and so on.
VERBOSE/S if you like lots of progress printing informations..
NORSRCID/S use a floating index (0,1,...) instead of the MacOS icon ID
NOSELECTED/S do not generate the selected image
GGEETTTTIINNGG HHEELLPP
Sorry, no help available
BBUUGGSS
None known ?
AAUUTTHHOORR
Daniel Balster
6 December 1996 2