Counting the number of white pixels in a Bitmap image

Sunjinsak

Board Regular
Joined
Jul 13, 2011
Messages
115
Office Version
365, 2019, 2016, 2013
Platform
Windows
Hi,

I’m wondering if it’s possible – using VBA in Excel 2013 on Windows 7 – to open a bitmap image and count the number of white pixels contained in it?
Searching the forum I found this old thread which appears to be asking a similar question. There was a promising reply but the OP didn’t respond.

I’m using a 24 bit bmp (which I double-checked with the code in that thread) if it helps.

Thanks in advance!
 

Forum statistics

Threads
1,085,056
Messages
5,381,471
Members
401,741
Latest member
MattA8

Some videos you may like

This Week's Hot Topics

Top