home *** CD-ROM | disk | FTP | other *** search
- macpaint.datatype Version 43.1 (10-Jul-97)
-
- Written by TetiSoft@apg.lahn.de (Detlef Wuerkner)
-
- This is public domain.
-
-
-
- It's a datatype for MacPaint picture format. MacPaint pictures are
- black & white, 720 * 576 pixels.
-
- Written to replace macpaint.datatype 42.1 from CBM
- (Aminet util/dtype/picdt_42_1.lha). I found two bugs in it:
-
- 1) The descriptor hook-function didn't recognize all MacPaint pictures,
- but declared a large number of other files as MacPaint pics. The
- new descriptor from Erik Engdahl (Aminet util/dtype/MacPict2_dtc.lha)
- was better, but recognized also Compugraphic fonts as MacPaint.
- My descriptor checks deeper: It tests if the data is packed with
- the PackBits procedure.
-
- 2) With SetPatch43.6 installed, the old macpaint.datatype produces
- completely black pictures (at least on my system). With
- SetPatch 40.16 it worked. My version doesn't have this problem.
-
- Since MacPaint pictures are black and white only, this datatype should
- work with every version of picture.datatype, the version number "43.1"
- was choosen to force version-number-freaks to update, not to imply
- that special features of 24-bit-datatypes would be used :-)
-
- Most part of the source code is based on the source of samplePNM.datatype
- by Andreas R. Kleinert (V43.6 (27.3.97)). Thanks to Andreas! It's code
- can be found on Aminet in dev/c/C_V43DT.lha. Let me cite him:
-
- You may e.g. use this example source code to write more portable
- Amiga OS 3 datatypes to allow easier porting of these
- to other Amiga OS-derived operating systems, or the native
- OS of an upcoming PowerPC Amiga.
-
- The file Source/Part_of_libfuncs.c contains the changed file
- decoding function, adopted for MacPaint format. The source code
- for the hook-function can be found in Source/MacPaintCheck_Hard.c,
- the compiled binary is named Source/MacPaintCheck_Hard. When playing
- around with "dtdesc", you always must load the function
- Source/MacPaintCheck_Hard before saving, otherwise dtdesc won't
- remember it!
-
-
-
- Installation of macpaint.datatype:
- ----------------------------------
- If you already have installed CBM's macpaint.datatype, make a backup
- of devs:datatypes/MacPaint and sys:classes/datatypes/macpaint.datatype.
- Just in case this version would not work as desired :-)
-
- Copy macpaint.datatype to SYS:Classes/Datatypes/
- Copy MacPaint and MacPaint.info to devs:datatypes/
- Double-click the MacPaint-Icon (or reboot to be sure AddDatatypes
- works correct).
-
- Sample Pictures for testing if everything works can be found on Aminet in
- util/dtype/MacPict2_dtc.lha.
-
-
-
- If you have problems with file recognition, you can replace the descriptor
- in devs:datatypes/ with CBM's or Erik's version. If the picture viewing
- doesn't work, try to replace the datatype in sys:classes/datatypes/
- with the CBM version. In both cases, please send me a bug-report!
-
- This datatype is tested to work with '060, Cyberguard, MungWall and
- Cybergraphics, but due to the low amount of testpics,
- there maybe some bugs left.
-
-
-
- Happy datatyping, and send me an e-mail if this package is of use for you
- or if you have problems with it.
-
- TetiSoft@apg.lahn.de (Detlef Wuerkner, Giessen, Germany)
-