[comp.windows.ms] Paintbrush for windows and the colormaps

tony@clio.sts.uiuc.edu (Tony) (06/07/91)

First of all a disclaimer: I can't help it, the paintbrush that comes
with windows is the only painting program that I have.

I am trying to display PCX files created with Paintbrush.  The problem is
that the Red and Blue are switched.  I downloaded seepcxhd, a utility to
view PCX file headers, Z-soft bulletin board and it showed the colormap
that the PCX files used.  The colormap for the PCX files looked like:
	R     G     B
        0     0     0
	128   0     0
	0     128   0
	128   128   0
	0     0     128
	128   0     128
	0     64    128
	128   128   128
	64    64    64
	255   64    64
	64    255   64
	255   255   64
	64    64    255
	255   64    255
	64    255   255
	255   255   255
What I need to know is if the positions on the pallette represent 
colormap registers.  For example, does the box that contains white
with the startup pallette represent colormap register 15.  I tried
to test this by changing white to black, but then the header viewer
read the file as a version 2.8 paint file without a pallette and 
screwed up the colormap values. 
   The solutions that I have been thinking of are 
   1) Get a new paintbrush program. 
   2) Draw all the pictures with switched colors (i.e red for blue)
   3) Write a routine to switch the values in the header. (I dont really
      feel like it)
   4) Modify the colormap when the picture is viewed (Other pictures
      were drawn with the correct settings)
   5) Make a customized pallette that will have the right values 
      in the colormap registers.  <-- This is what I would like to
      do.  

      Please Help!  
      E-mail responses to this logon since I don't usually read this
      group.

		   Thanks,
		     Tony Chen
		     tony@clio.sts.uiuc.edu