Hi everyone!

I have something which I'm completely confused about it. I have 3 different image files (*.img, *.frg, *.raw). I have their respective file formats containing the header information (i.e. file name, number of images in the file, image width, image depth, etc.). Within the file format I have the bytes containing specific information. For example, my *.img file contains images with width and depth to be 512 respectively. From this information, each image file size will be 512x512x1bytes = 262,144 bytes.

My question is, how do I parse through the image bytes to draw an image in Visual C++? I can't use the Image class because it doesn't support my custom file type. I also can't use PaintLib because of the same reasons with the Image class. Im guessing the bytes for the image file will contain information for each pixel but I have no idea how to do it.

I'm fairly new at Visual C++ so please excuse me if this is a newbie question

Thanks in advance!