How to get 256 colors in a Visual Basic picture box control
The enclosed files (see below) show how to display a 256 bitmap in a Visual Basic picture box control. The technique uses a DLL to read the bitmap file into memory and create a palette which can then be selected into the picture box's device context and subsequently realized (I can't take any credit for the code within the DLL ... it was lifted with very little modification from a couple of SAMPLE programs supplied with the Microsoft Windows SDK.)
File Size: 26 KB