Click to See Complete Forum and Search --> : Find color that is not in a Bitmap


Skynet
October 23rd, 2004, 10:18 AM
Hi :wave:

I have a 24bits color bitmap and I need a to know how to find 1 color that is not in the bitmap.

Please, dont tell me to make a 2^24bit indexed color table....

thanks,
skynet.

Marc G
October 23rd, 2004, 12:45 PM
I suppose there are two ways:
- Use a 2^24bit table, i don't see a problem with that btw, if you use only 1 bit per entry then the entire table is only 2 MB...
- Work the otherway around (slower i suppose) check if color (0,0,0) is somewhere in the pic, then check if color (0,0,1) is in it, ... till you find a color that isn't in the pic.