I'm sorry if this has been posted before but...
I used this example code from my book to understand image processing better. The image is of the queen mary ship, in a .bmp extension file. Anyways I basically take the picture and save a negative image of it onto the same or different file. The example says to show colours red blue and green at some set values, so I did and the problem is, it completely turns to different colours like black, light blue, and etc depending on the number of times i try to do this. I don't understand why this is at all. I figured that an example would be a great way to understand the code but it doesn't seem to work.
If someone needs me to post the code, I'll post it.