by Jeffrey Katz (4 Submissions)
Category: Graphics
Compatability: Visual Basic 5.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating:
(2 Votes)
Demonstrates reading a bitmap's header in binary to determine the bit depth (amount of colors) and the palette information. Useful for beginners who want to work with paletted bitmaps, or anyone interested in binary files.
Inputs
A 16 or 256 color bitmap.
Assumes
How to type ;)
Code Returns
The size, bit depth, and palette information of the inputted bitmap.
Side Effects
Palette window only redraws on mouseover.