Thread View: comp.os.os2.programmer
1 messages
1 total messages
Started by Jack A. Zucker
Wed, 21 Nov 1990 13:13
GpiCreateLogColorTable()
Author: Jack A. Zucker
Date: Wed, 21 Nov 1990 13:13
Date: Wed, 21 Nov 1990 13:13
18 lines
1383 bytes
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 |
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads