I was writing a program that reads and writes bitmaps but I encountered a strange propblem: for certain sizes the displayed image had pixels with strange colors. I thought t