See documentation on this utility in Bmp2RawBk256.dpr source file.