You are using a function analyseMap() wich only returns true or false, and you are only painting white (255,255,255) pixels. The function ExtractColor is returning true of false, ignoring the colour components: red, green, blue. Briefly, you are painting the black pixels in the .bmp image with the colour white.
P.S. You can post the .gbas code in your message too.