Download 256VBCOL.ZIP
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 Name: 256VBCOL.ZIP File Size: 26 KB Files in Archive: 14Files contained in this archive
- 256PICBX.BAS
- 256PICBX.EXE
- 256PICBX.FRM
- 256PICBX.MAK
- DIB.C
- DIB.H
- DIBUTIL.C
- DIBUTIL.DEF
- DIBUTIL.DLL
- DIBUTIL.H
- ERRORS.C
- ERRORS.H
- MAKEFILE
- README.TXT