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: 14

Files contained in this archive

  • 256PICBX.BAS 256PICBX.BAS
  • 256PICBX.EXE 256PICBX.EXE
  • 256PICBX.FRM 256PICBX.FRM
  • 256PICBX.MAK 256PICBX.MAK
  • DIB.C DIB.C
  • DIB.H DIB.H
  • DIBUTIL.C DIBUTIL.C
  • DIBUTIL.DEF DIBUTIL.DEF
  • DIBUTIL.DLL DIBUTIL.DLL
  • DIBUTIL.H DIBUTIL.H
  • ERRORS.C ERRORS.C
  • ERRORS.H ERRORS.H
  • MAKEFILE MAKEFILE
  • README.TXT README.TXT