creating image from pixels stored in file
I am making a viewer that reads pixels from a file and displays it on the screen.
The problem is that I know very little about the image.
- I know that the file is Binary.
- I know where in the binary file the image is (I'ts a 1024 byte large package of pixels)
- I know that the pixels are a 16 bit signed value. (that means that one pixels use 2 bytes?)
That's all I know.
Can anyone give me any hints on how I can retrieve this data from the file and a method to display the data?
If not, what information do I need to know to be able to retrieve this information?
sounds reasonable, but...
Yes, that sounds like a good idea. But, when I read these 16 bits, what functions do I use to convert them into pixels, and which functions do I use to display them on the screen?
I've heard some talking about API functions?
I use Visual C++ with MFC.
Hoping for more good tips.