Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

file i/o operations with images

Status
Not open for further replies.

natashadams

Programmer
Jan 16, 2006
1
CA
hello all:
I'm trying to insert images into files but not quite sure how to do that. the images can be of jpg, bmp ,png formats. I'm not aware of how to open the file, insert the image into it and view the contents of the file when necessary.Could anyone please share some information on this? Thanks in advance and appreciate the help

Regards,
Natasha
 
At the lowest level, you would use
- fopen
- fclose
- fread
- fwrite
to manipulate the file. Don't forget to use "rb" and "wb" when opening the file.

As for file formats, BMP is definitely the easiest to manipulate in code terms. If you're really into doing the file yourself, you need to check out the file formats. This site has descriptions of many formats.

But a library is definitely worth looking into if you can.

--
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top