/*
 * The Progressive Graphics File; http://www.libpgf.org
 * 
 * $Date: 2006-05-23 16:49:50 +0000 (Di, 23 Mai 2006) $
 * $Revision: 205 $
 * 
 * This file Copyright (C) 2006 xeraina GmbH, Switzerland
 * 
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE
 * as published by the Free Software Foundation; either version 2.1
 * of the License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */

This demo application shows what pgf codec is able to do. It takes a Windows 
bitmap as input image and encodes (-e option) it as a PGF image. 
After encoding an image as a PGF it decodes (-d option) the image back as a 
Windows bitmap image. 

This demo application uses FreeImage for platform independent 
reading of Windows bitmap files. Therefore FreeImage must be installed on your computer.



Usage: pgf [-e|-d] [-l levels] [-q quality] [-m temp-file] [-8] [-v]
       source-file destination-file

Options:
  -e            Encoding: Create from a Windows 24-bit bitmap (source file)
                a PGF image (destination file).
                See options -l and -q for further hints.
  -d            Decoding: Create from a PGF image (source file)
                a Windows 24-bit bitmap (destination file).
  -m temp-file  Measurement: Encode from a Windows 24-bit bitmap (source file)
                a PGF image (temp file) and decode from the PGF image
                a new Windows 24-bit bitmap (destination file).
                Measure quality between source and destination bitmap.
                See options -l and -q for further hints.
  -l levels     Number of hierarchical levels [1..99].
  -q quality    Quality [0..9]. Default is 0.
                0 means perfect quality (lossless compression),
                9 means maximum compression.
  -8            Windows bitmap file contains three identical 8-bit channels.
  -v            Numbers only: All text output is reduced to numbers.
