There is a function transofmring an image in array... then you get all points of the array with value zero and change it to red
and then you go back to image and save
There was an example in windev doing something similar... I think it was a security camera example that was procesing the images to detect movement