TIP: Click on subject to list as thread! ANSI
echo: 80xxx
to: TOM TORFS
from: SCOTT MCNAY
date: 1998-01-03 10:37:00
subject: getting pixel color...

 *** Tom Torfs wrote in a message to Darryl Gregorash:
 RG> ... get the color of a pixel in 1024x768 256 color mode....
 DG> INT 10 - VIDEO - READ GRAPHICS PIXEL
TT> This BIOS function is horribly slow, and I'm not sure if it
TT> will support these high-resolution modes. You're better off
TT> with a library written specifically for this purpose.
If it doesn't, that means that the BIOS on the video card doesn't have 
support for it.  Any mode that is officially supported by the BIOS *should* 
also support this function under that video mode.  If the video mode is not 
officially supported, then don't bet on it.
If the card has VESA support, I believe there's a VESA function that returns 
information on whether the BIOS has support for a particular VESA-supported 
mode; you might check into this to confirm.  Of course, if the mode is not in 
the list provided by the VESA function, then don't the BIOS to support it, 
unless you can switch to a compatible mode that the BIOS does support and 
then manually change the mode registers to the mode that you want.  This, of 
course, is not a good idea, since it'd be incompatible with a lot of stuff.
--Scott.
--- timEd 1.01
---------------
* Origin: Wizard's PC Services, BBS=254-554-2146, Pager=903-3097 (1:395/11)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.