craigp1 0 Newbie Poster

Hi,

When i open a 24bit bitmap, i need to display the number of colors used out of the 16777216 in the bitmap pallete. Is there a simple way to obtain this statistic or does it involve looping throught the pixels and counting the colors.

Thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.