🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #1661

GpiCreateLogColorTable()

#1661
From: Jack A. Zucker
Date: Wed, 21 Nov 1990 13:13
18 lines
1383 bytes
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 | 
Technical Details
Message-ID: <1971@abvax.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!abvax!icd.ab.com!jaz

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!abvax!icd.ab.com!jaz
From: jaz@icd.ab.com (Jack A. Zucker)
Newsgroups: comp.os.os2.programmer
Subject: GpiCreateLogColorTable()
Message-ID: <1971@abvax.UUCP>
Date: 21 Nov 90 13:13:55 GMT
Sender: news@abvax.UUCP
Reply-To: jaz@icd.ab.com (Jack A. Zucker)
Organization: Allen-Bradley Company; Industrial Computer & Communications Group
Lines: 18