Ok, I tried that. I made the E layer most significant (bits were either 0 or 80). Then G (40), R(20), and finally B(10) was least significant.
I opened all 4 bitmaps in GIMP. I made a new image, 640 x 480 and RGB mode. I made new layers, so I had 4 in total. All were set to addition (instead of normal). I copy and pasted each bmp image into the new window. I flattened the image, and then saved it as a 16 color bitmap.
Then a long story in a nutshell, colors from a dos-box screenshot was extracted, applied to the greyscale image, and rearranged as neccesary. The new pallet, when applied to the image, works great and I get the original screen back. Next, I just need to figure out a way (got some ideas) and write a C program to automate this. Take the 4 bitplanes (EGRB order most significant first), convert into chunks and write a run of the mill BMP and use the pallet I just worked out for the color map. For those who are interested I'll list the RGB values of the pallet in the order I have them in.
R G B
00 00 00
FC EC DC
FC CC B8
EC 98 84
A8 50 50
84 24 24
50 00 00
64 64 64
C8 C8 C8
00 34 DC
FC 00 00
FC 98 AC
00 C8 00
44 CC EC
FC EC 00
FC FC FC
That's about it. I think I found all the info I can, and listed what a person needs for looking at the strange screen captures PM2 makes. That said, I instead advise just using Dos-Box to take screenshots. Press Ctrl-F5 to take a capture. All images are stored in the Capture folder in your Dos-Box folder in the Program Files where it gets installed. I probably won't get started on learning to code right away (I know a little already), but maybe some day I'll try to make a little DOS utility to process those 8 files. I hope you found all of these info to be of some use. (If you are confused about BMP files, a web search will turn up what you need to know.)
|