RGB to VGA
Posted: Wed Jun 17, 2009 8:17 pm
I have been looking for information about adapting, say, the colors of a 24bpp bitmap to 16 VGA colors, just like in the window manager demo from Alexei Frounze sources.
I have looked for things like
"rgb to vga" algorithm dithering -cable -adapter
in Google but there doesn't seem to be anything useful. So, where or what should I look at? Does the Abrash graphics programming black book have something like this? I didn't seem to find anything in the wiki either.
Things like rotating and OR'ing the bits for color, but I don't know what concepts are being used beyond it has to do with Red Green Blue and (unused) Alpha and adapt them into a VGA color index (right or not?), in the Display/Display.c source file.
Here is that window manager demo which I think is also at Alexei Frounze site, I hope it to be actually downloadable.
http://126.sytes.net/tmp/alexei_winmngrdemo.zip
I have looked for things like
"rgb to vga" algorithm dithering -cable -adapter
in Google but there doesn't seem to be anything useful. So, where or what should I look at? Does the Abrash graphics programming black book have something like this? I didn't seem to find anything in the wiki either.
Things like rotating and OR'ing the bits for color, but I don't know what concepts are being used beyond it has to do with Red Green Blue and (unused) Alpha and adapt them into a VGA color index (right or not?), in the Display/Display.c source file.
Here is that window manager demo which I think is also at Alexei Frounze site, I hope it to be actually downloadable.
http://126.sytes.net/tmp/alexei_winmngrdemo.zip