[comp.os.os2.programmer] GpiCreateLogColorTable

jaz@icd.ab.com (Jack A. Zucker) (11/21/90)

I am using OS/2 1.2 with an EVGA system capable of 256 colors. I'm using
the default device driver (16 colors). I was experimenting with changing
the color mode to RGB mode via the GpiCreateLogColorTable() call. Using this
call and setting the current mode to RGB, I can draw lines with colors that
are not part of the default palette. In effect I can get 256 colors this way.
However, I cannot seem to get bitmaps to work with custom colors. If I specify
an RGB array that doesn't exactly match what is in the color table, I get the
color index that best fits the RGB bits that I have requested. Has anyone out
there fooled around with this ?

-Jaz


| Jack A Zucker	                 {cwjcc,pyramid,decvax,uunet}!jaz@icd.ab.com |
| Allen-Bradley Company, Inc.     or                       ICCGCC::ZUCKER    |
| 747 Alpha Drive                 
| Highland Hts., OH 44143         phone: (216) 646-4668   FAX: (216)
646-4484 |