🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc.programmer
Article #643

Need Info on Reading Video Card RGB Triples

#643
From: Chris Healey
Date: Thu, 07 Jun 1990 19:15
17 lines
1155 bytes
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
Technical Details
Message-ID: <1990Jun7.191543.17599@maytag.waterloo.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!cica!iuvax!maytag!daemon

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!cica!iuvax!maytag!daemon
From: cgh@aries5.uwaterloo.ca (Chris Healey)
Newsgroups: comp.sys.ibm.pc.programmer
Subject: Need Info on Reading Video Card RGB Triples
Message-ID: <1990Jun7.191543.17599@maytag.waterloo.edu>
Date: 7 Jun 90 19:15:43 GMT
Sender: daemon@maytag.waterloo.edu (Admin)
Organization: CSG, University of Waterloo
Lines: 17