home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!rutgers!njitgw.njit.edu!hertz.njit.edu!dic5340
- From: dic5340@hertz.njit.edu (David Charlap)
- Newsgroups: comp.os.os2.misc
- Subject: Re: Mac Icons?
- Message-ID: <1993Jan4.222344.29422@njitgw.njit.edu>
- Date: 4 Jan 93 22:23:44 GMT
- References: <47762@ogicse.ogi.edu>
- Sender: news@njit.edu
- Organization: New Jersey Institute of Technology, Newark, N.J.
- Lines: 42
- Nntp-Posting-Host: hertz.njit.edu
-
- In article <47762@ogicse.ogi.edu> francis@ese.ogi.edu (Francis Moraes) writes:
- >I would like to convert some Mac icons to OS/2; does anyone know of a
- >program that will do this? I haven't seen any posts on this subject and
- >no mention is made to this in the FAQ which seems strange since I would
- >think this would be a common enough thing to want to do...
-
- This would be very difficult for the following reasons:
-
- 1) Mac icons are not stored in individual files. They are stored as
- resources in other files. Much like the way rc.exe binds icons to
- executables, but unlike OS/2, the icons can not stand on their own.
- This means you must (somehow) get the entire resource fork of a
- program into the PC, and parse the icon structure out of it.
-
- 2) All mac icons are 32x32, but this is where the similarity ends.
- Icons are stored as a variety of resource types. There is type
- ICON, which is a black & white bitmap; there is ICN#, which is really
- two bitmaps: a b&w bitmap and a mask (so parts can be transparent);
- there is cicn, which is an 8-bit color bitmap with a mask; then there
- is cin4 and cin8, which are 4-bit and 8-bit color icons with masks.
- Etc. So you need to convert each icon to it's respective "size" class
- in the .ICO file. Note also that each icon resource may have it's own
- identifier constant, meaning you may have to read other resources to
- associate the different forms of an icon with each other. This is a
- real pain, and I wouldn't want to do it.
-
- In short, unless you've a lot of icons to do, you're probably better
- off sitting in front of the mac with ResEdit (the resource editor) and
- a piece of graph paper and just copy the bitmap that way. I did the
- system 7 trash and Mac icons like this.
-
- BTW, I could be in serious legal trouble if I posted these icons,
- couldn't I? I'd like to share them, but I don't like threats of
- lawsuits, either.
-
-
-
- --
- |) David Charlap | .signature confiscated by FBI due to
- /|_ dic5340@hertz.njit.edu | an ongoing investigation into the
- ((|,) | source of these .signature virusses
- ~|~
-