Conversion to .bmp Conversion to .bmp Bamaman (Programmer) (OP) 22 Jun 00 23:56 I am relatively new to visual C++. I have a file of data that was transmitted in 16-bit chunks. The format is undetermined (maybe in hex). I need to convert the file to .bmp format and then display.Any ideas or suggestions on how to do this would be greatly appreciated. RE: Conversion to .bmp JTeagle (Programmer) 23 Jun 00 03:24 You must know what the format of the file is, and what it represents, otherwise how do you expect to convert it to a bitmap? Where does this file come from? RE: Conversion to .bmp Bamaman (Programmer) (OP) 23 Jun 00 08:31 The file is being transmitted from a camera flying around. The camera is taking pictures and sending the info. The format was left up to me. So any suggestions on that would be helpful too. Can it be just in lines of hexidecimal numbers? RE: Conversion to .bmp JTeagle (Programmer) 23 Jun 00 15:00 I guess the easiest, but perhaps bulkiest, format would be 24-bit RGB format - 8 bits red, 8 bits green, 8 bits blue.You mentioned 16-bit chunks - does this perhaps mean 16-bit RGB (usually 5 red, 6 green, 5 blue)?To get that information into a bitmap, take a look at the CreateCompatibleBitmap() function to create the initial bitmap object (assuming you know the size in advance), and then the SetBitmapBits() function for filling out the bitmap object from the raw data.Be aware though, that you will need to make sure your screen is in the 16-bit colour format for this conversion to work - if your screen is another format (different from that supplied by the camera), then you will need to fill out a BITMAPINFO structure and use one of the other CreateBitmap functions.