Calculating 'brightness' of a bitmap
Posted on 1997-11-03
I am trying to create a self-adjusting brightness feature for a videophone. I can take a 'snapshot' of the video in .bmp format. I need to somehow measure the brightness of that bitmap. Open to any ideas. Here is how I plan to do it:
1. convert the bitmap to grayscale.
2. Average the grayscale for each pixel, giving me an average "grayness" for the whole bitmap.
Q: How do I convert the bitmap to grayscale?
How do I access the individual bits of a bitmap.
BTW, I'm using VB 5.0 Enterprise Edition.