🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.windows.ms.programmer
1 messages
1 total messages Started by Ian Perrigo Mon, 27 Jul 1992 19:58
DIB's & Palettes
#82
Author: Ian Perrigo
Date: Mon, 27 Jul 1992 19:58
18 lines
1069 bytes
Here's the scoop: I'm loading a 256 colour DIB, and I don't get the right
colours displayed in my app (but Paint displays them correctly). Can I create
a logical palette using the bmiColors[] array in the BITMAPINFO structure in
the DIB file?
Any example code would be much appreciated.
When I move to a DIB that has > 256 colours, must I deal with this seperately?
It appears that the bmiColors array is no longer used, and that the RGB values
are in the bitmap array (three bytes per pixel). 

Specs:
486-50
ATI Graphics Ultra
Windows 3.1
BorlandC++ 3.1 with OWL

Thanks in advance,
Ian.
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