|
-
June 10th, 2009, 01:02 PM
#1
Decoding custom image in Visual C++
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!
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|