This function will step through a 24bit image (Created with Flag 4) and return the amount of colours in the image. This will be useful for building palette lists for colour operations.. etc.
Code
Copyright(c) 2000-2004, BlitzCoder. All Rights Reserved.