How to convert a .bmp file (which has a each pixel capacity of 3 bytes) to .raw file (each pixel capacity of 1 byte) in VC++