hi,
I'm not sure if I perfectly understood your question but, I think you're gonna have to user a filter on your image. I had to do a similar task in order to eliminate many levels of gray on an image.
It can be a bit confusing though, but I once found a perfect program to test filters and I found it very useful. It was also open source and made in delphi.
Unfortunately, I don't have the url with me right now, but I'd be glad to look it up for you if you are interested.
I could also give you a more complete explanation of how to pass a filter into an image with delphi and maybe show you my code.
Best way to reach me is at
Geenie@videotron.ca as I receive so much junk in hotmail right now that I can't even tell wich mails aren't.