home *** CD-ROM | disk | FTP | other *** search
- TempToDP - send ".tmp" format files directly into DigiPaint 3
- -------------------------------------------------------------
-
- Scenario 1
- ----------
- The Sliced Ham (SHAM) stuff was going around, and it was producing
- really nice results. However, one thing that the conversion programs
- did that I found unforgiveable was to "average" pixels if the picture
- crossed a certain width or height boundary, thus drastically modifying
- the orignal image.
-
- Scenario 2
- ----------
- After getting my hands on DigiPaint 3 (and just playing with it
- for a few days), I started looking at the AREXX commands. Since
- these commands use a regular message port, it is possible to
- bypass AREXX completely and send data directly to it from another
- program. The GIFTOTMP program included with the distribution
- did okay, but the final conversion process would squeeze the picture
- down to fit on a "normal" screen. Heck, I wanted to take these
- 256 color GIF pictures that I had downloaded and see them in
- close to all of their glory, even if I had to scroll around to see
- them.
-
- The Result
- ----------
- Well, you can already guess. I wrote a program to take the output
- of GIFTOTMP and send it directly to DigiPaint 3. The result of my
- efforts is TmpToDP, the program you now have in your hands. Using
- this program, I've been able to convert pictures as large as 800 x 400
- pixels from 256 color GIF files into huge HAM pictures that you can
- view and play with in DigiPaint 3 (my favorite toy for now).
-
- And DigiPaint 3 does one hell of a rendering, too.
-
- Using the program
- -----------------
- TmpToDP runs only from CLI.
-
- The command line template looks like this:
-
- Usage : TempToDP <temp file> <digipaint portname>
-
- The meanings of these are:
-
- <temp file> - the name of the .tmp file that has been produced by
- the GIFTOTMP program.
- <digipaint portname> - since the name of the DigiPaint 3 port for
- passing messages can differ depending on how you invoke DigiPaint 3,
- you must specify the portname that it is expecting. See the
- DigiPaint 3 manual for information on what the portname will be.
-
- After you do this, assuming everything has gone well (ie. the portname
- has been found and the file opened), TmpToDP will begin sending lines
- of data from the file to DigiPaint 3. There is no intermediate file
- needed, and the program doesn't take up too much memory since it only
- processes one line at a time. This way, you can usually get huge pictures
- over to DP3 without using lots of memory.
-
- You may abort operation of the program safely at any time by
- pressing control-c.
-
- Hints
- -----
- Most of the time, the picture that you send in will look fine. There
- will be times that you might get a little bit of fringing. If that is the
- case, then try adjusting the base palette to colors close to the ones that
- are in the picture. This can make an immense difference if the colors on
- the screen are far removed from the ones in the base palette. After
- adjusting the base palette, send the picture in one more time.
-
- Something interesting to note - dithering is active on lines that are
- being sent in, if it is turned on within DigiPaint 3. Sometimes this
- can help or hurt the picture you're passing in. Experimentation is the
- best way to figure out what works best.
-
- Make *sure* that what you are passing into the program is a tmp format
- file. (sorry, I don't know the 'official' name for this format) There
- is no "signature" in the file to indicate whether it is indeed this
- format, so I have not gone to the trouble of putting in any check
- routines. This means that you can probably screw things up by reading
- in some other strange binary format file. (readtemp c:dir DigiPaint3)
-
- Notes
- -----
- The GIFTOTMP program that is referenced herein is contained in the
- SHAMVIEW3.ZOO distribution (as it is known on BIX). It was written
- by Mark Podlipec, and is not included in this distribution.
-
- The "cop2.tmp" file included in this distribution is a ready-to-send
- "tmp" formatted file for you to experiment with, should you not have
- any GIF format pictures or GIFTOTMP laying around at the moment.
-
- For those who would like to try their hand at doing something similar
- to this for other file formats, the entire Modula-2 source code (fairly
- well commented) is included. Also, I have heard that there are other
- pieces of PD software that output this mysterious "tmp" file format, but
- I have had yet to run across them. If you can inform me better on this
- subject, contact me at one of the contact spots below.
-
- ------------------------------------------------------------------------
- This program was developed using M2Sprint Modula-2 from M2S Inc.,
- Dallas, Texas. This is a very friendly, very powerful, very
- feature-packed development environment. If you are at all interested
- in Modula-2, you should check out the competition and then check
- out M2Sprint. You won't be disappointed.
- ------------------------------------------------------------------------
-
- Distribution & Stuff
- --------------------
- This program is freely distributable. There is no fee or charge
- associated with its use, only that you abide by these rules when
- redistributing it. It may be included on public domain collections
- that cost THE SAME AS THE FISH DISKS OR LESS. In other words, only
- on PD disks that charge only for media and/or mailing compensation.
- Please, if you distribute this, keep the archive intact, or be
- sure to include everything that has been included with this program
- if it is being made available in an uncompressed format.
- Also, this may be uploaded to any network or bulletin board that
- claims no sort of copyright on material posted there.
-
- To talk to a starving Amiga developer:
-
- bix : csbailey (this is preferred)
-
- phone: (803) 794-4933
- mail : Chris Bailey
- 2405, Feather Run Trail
- W. Columbia, SC 29169
-