Original Post
Hi. I''m not sure I''m in the right forum for this question, but
I am using DelphiX with Delphi 6.
Please excuse me ignorance here...
I am new to programming in Windows and do not understanding how
Windows/Delphi handles colour.
I remember the old DOS days with 256 colours. One byte stores the colour number, with each colour in the palette having RGB values 0..255.
From what I understand. 24 bit colour uses 3 bytes each represent
each of the RGB values. 3 bytes equals 24 bits. Therefore 255x255x255 gets us to the 16.7 million possible colours.
Is that how it works?? :-)
Okay. So what about 16bit colour?
I am going to write a game in 16bit colour. How is this
stored exactly.
I haven''t been able to find anywhere where it explains how colour is handled in Windows. At least, not in a simple manner.
Can anyone point me somewhere where I can start?
How is a 24bit colour BMP displayed in a 16bit mode for example?
Thanks for any help in advance!
Paul.