home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!sunic!random.se!ianf
- Date: Wed, 02 Sep 92 08:34:54 +0200
- From: ianf@random.se (HyperAgent In Disguise[tm])
- Newsgroups: comp.sys.mac.hypercard
- Apparently-To: rnews@sunet.se
- Message-ID: <a6ca2d28@random.se>
- X-Mailer: Fernmail 1.2b2
- X-Cc: <davidc@panix.com>
- Organization: random design -- "Opinions, cheaply"
- Lines: 31
- Subject: re: Hypercard Image formats (FAQ?)
-
-
- David B. Chorlian <davidc@panix.com> writes on
- # Date: 1 Sep 92 01:52:50 GMT
- in regard to the subject matter:
-
- > I need to know how to read the binary files:
- > boundaries between pictures, size, bits per pixel, etc. I would
- > appreciate references to published material or even better, email,
- > as I do not regularly read this newsgroup.
-
- HyperCard file format is proprietary and unpublished. It uses
- highly-effective bitmap compression algorithms (average compression
- of HC 1.2.x stacks supposedly in the range 30:1) and thus isn't
- easily defeated.
-
- If processing time is no constraint on your part I'd imagine that
- a fairly simple script in HyperTalk could effectively read value
- of each binary pixel (using Steve Maller's thePixel() XFCN that
- returns either "black" or "white"), then analyse the boundaries
- of extracted bitmap in the memory and effectively return the data
- in the binary format of your own design. The latter part sounds
- complex but there are by now fairly well-known algorithms in the
- public domain that do that (edge detection etc).
-
- An alternative course of action would be simply to extract the
- bitmap matrices from each card into a file (as "0010011001111011"
- etc) and then submit those ASCII data to analysis by some high-
- powered graphic workstation with suitable image enhancement tools.
-
-
- --Ian
-