sriram_bandi
asked on
C PROGRAMING
How to open .bmp and .jpeg files using
c program?
c program?
ASKER
Please send the answer as early as possible.
FILE *fp;
fp=fopen ("filename.bmp","rb");
or
fp=fopen (filename.jpeg","rb");
For a description of the fileformat check
http://www.wotsit.org/
ASKER
We already know that any file can be opened in C using File operations. But how to read the actual picture data from a bmp file. Because bmp file has a format i.e a header will be load at first inorder to identify the bmp file. So we request you to send the bmp format.
rbr gave a link to a description of the file format
http://wotsit.org/cgi-bin/download.cgi?bmp
http://wotsit.org/cgi-bin/download.cgi?bmp
What is you OS? What you want to do with BMP/jpg file?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER