When we develop a 'C' program i can't add another picture(jpg,gif) into a program help me how to include such files into my program
How to include any picture file or any other file into 'C' program?
all the files saved on ur desktop screen get automatically saved in ur C drive.
Reply:You need to read graphics file, to decode it according to its format, to convert to, say, DIB (if you are using Windows) and to display this DIB.
Not a trivial task if you want to do it yourself.
Much easier will be using ready free library as, e.g., CxImage:
http://www.codeproject.com/bitmap/cximag...
(codeproject requires free registration)
Reply:use file.h header and use the associated protype function to handle your file.
file handling in c , refer yaswant kanitkar
hollyhock
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment