[comp.sys.ibm.pc.programmer] Need Info on Reading Video Card RGB Triples

cgh@aries5.uwaterloo.ca (Chris Healey) (06/08/90)

I am working on a screen capture program, which needs to be able to read the
screen colours being used by the active video mode.  Since many graphics
programs change the palette colours, it's not sufficent to assume the default
values.

   I need to find a way to determine the RGB triples being used by the active
video mode.  I know that with a VGA card, you can query the RGB values through
BIOS by passing it the palette register.  However, I'm uncertain which
palette registers are used by which video modes.  In EGA, I've found no way
to query the RGB triples.

   Any information you could provide would be grealy appreciated.


Thanks.
Christopher G. Healey