/***************************************************************************

 bmpal.c - creates color/palette maps from/for .BMPS.  Created
  (v.01)   as a "sister" program to bmp2map to help map authors
           determine palette indices for colors used.

Copyright(C) 1998 - Silicon Slick's Software, Supplies and Support Services
         http://www2.cy-net.net/~si_slick  si_slick@cy-net.net

  This program is free software; you can redistribute it and/or
  modify it under the terms of the GNU General Public License
  as published by the Free Software Foundation; either version 2
  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.

***************************************************************************/

Command line:  bmpal <input .BMP> <output.BMP> [<num pixels>]

This will read the palette info from the input .BMP and
create an output .BMP which lists, in order, the 256 colors used.
It only works on .BMPs w/256 colors!  You'll need to explicitly
convert your .BMP to 256 colors if it isn't (the sample.bmp
that comes with bmp2map does have a 256 color palette).

The output will be <num pixels> wide by <num pixels> high.
Default <num pixels> is 512.  Each color is listed in a
<numpixels>/16 by <numpixels>/16 box.  There are 16x16 boxes.

The output image looks like this (palette indices in decimal):

00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15
16 17 18 19 20 ... 31
32 ... 47
48 ... 63
.
. (etc.)
.
224 ...  239
240 ...  255

[I assure you, the use is easier than the explanation.]

This hasn't been extensively tested but seems to work.

Gib'em,

jack (aka Silicon Slick)
Clan 13th Man - http://http.tamu.edu/~jkp2866/Clan13thMan/
bmp2map - http://www2.cy-net.net/~si_slick/bmp2map/
bb32ctf - http://www.cs.tamu.edu/people/jkp2866/BrightCTF/
--
6S6S6S6S6S6S6S6S6S6S6S6S6S6S6S6S6S6S6S6S6S6S6S6S6S6S6S6S6S6
S  Silicon Slick's Software, Supply and Support Services  S
6 Jack Perdue, Proprietor     E-mail: si_slick@cy-net.net 6
S          WWW: http://www2.cy-net.net/~si_slick          S
6S6S6S6S6S6S6S6S6S6S6S6S6S6S6S6S6S6S6S6S6S6S6S6S6S6S6S6S6S6


