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