New version: 1.8a

Changes:
- Fixed problem with sporadic "invalid or unsupported bitmap" 
  error popup when opening images from "browser" screen.
- Fixed armlet bug that caused crashes on Treo650 (thanks to 
  everybody who helped to trace it down). If you are using
  SD card make sure the prevous version is not stuck in the 
  handheld memory.
- Added 65536 colors mode support (tested with m505 emulator 
  and Palm Tungsten C). Keep in mind that the decompression 
  using 68K code becomes a significant slowdown with these 
  image sizes, so check if the quality improvement realy worth 
  the storage and speed in your usage case.
- Added standard 160x160, 320x320 and 280x160 resize dimensions
  to the resize options in converter. Increased granularity
  of rescaling available in the GUI.
- Added command line interface and CLI batch processing.
  Refer to the program online help for the list of options 
  available and their detailed description.


CLI Interface

Usage: vdivc.exe <input-path> [-d] 
          -c <type> [-b] [-e] [-s <scale>] [-f] [-m] [-r] 
          [-i <palm-user-id>|-o <output-path>] [-z] [-n <name>]> 
          [-l <log-name>]
or
       vdivc.exe -v <pathname> [-l <log-name>]
or
       vdivc.exe <file-name> 

The command line options can be used for:
1. Converting one or multiple image files of supported format 
   and either saving them into PDB file(s) or scheduling them for
   installation for a specified handheld user without involving 
   the GUI interaction (first usage case).
2. Extracting the viewer PRC file without GUI interaction (second 
   usage case).
3. Specifying an image file to load at GUI startup (third usage
   case).

The scheduling for handheld installation requires the Palm Desktop 
software. The output file(s) (if present) will be silently overwritten.
This is windows (not console) aplication, therefore it is detached
from console at invocation. If you are using it in a batch file and
would like the caller to block till it finishes, call it with 
"start /W vdivc.exe ..." (2K/XP systems). You can check ERRORLEVEL
upon return. It will be set to 0 if 1 or more input files are found
and all of them are successfully processed. A value from 1 to 10
indicates CLI syntax error. Values 11-40 - some processing error and
value 41 means no matching files found. The "-l" option can be used 
to enable logging.

Example:
start /w vdivc.exe *.png -c 3 -z -l test.log 
Converts all PNG images in current directory into 256 color compressed PDBs.

CLI Options:

<input-path> - Path to the input file(s) (can include mask for batch
               processing i.e. when "-c" is present). 
-d           - Traverse subfolders.

-c <type>    - Convert input image file(s). Following conversion types 
               are supported:
                 0 - "Greyscale 16"
                 1 - "Color 16"
                 2 - "Greyscale 256"
                 3 - "Color 256"
                 4 - "Color 64K"
-b           - Assure presence of black and white colors in the output
               image palette (silently ignored if does not apply to
               the desired output image type).
-e           - Try to compensate for errors due to color reduction in
               the output image (silently ignored if not supported 
               for the desired output image type). 
-s <scale>   - Rescale the image.
               The <scale> can be either an integer number that indicates
               desired rescaling percentage or a string of the form
               RRRxCCC where RRR and CCC are numbers of desired rows
               and columns of the rescaled image.
-f           - Flip image upside down.
-m           - Mirror image.
-r           - Rotate image 90 degrees clockwise.

-i <palm-user-id> - Tells the application to schedule the converted image(s) 
               for installation instead of saving them into a PDB file.
               The <palm-user-id> is case sensitive.
-o <output-path> -  Store the converted image(s) into <output-path> PDB 
               file. Do not use this option with multiple input files. 
               If the option is not present the converted PDB files
               are created by adding ".pdb" to the original file names.
-z           - Compress the output image data.
-n <name>    - Set database name for converted image(s) to the specified
               string (up to 32 characters). The name is set to the first
               32 bytes of input filename by default.
-l <log-name> - Create processing log file.

-v <pathname> - Extract the viewer PRC file and save into the <pathname>.

