display the jpg/bmp file

arangasoft's Avatar
Light Poster
hai everybody,

I want to display an *.jpg/*.bmp(24-bit image) file while runnig the program in turboc.
But i don't know how to do it?.So anybody know the asnwer for my question, please tell me.If you can send the source code,then i always welcomes you.

My mail ID "arangasoft@gmail.com".

bye
arangs
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Hello

First of all welcome to go4expert. I know you registered some time back but this is your first post and so I as an administrator welcome you to the forums.

Now about your query you need to open a jpg/bmp file in turbo C

This can be done if you know what format the jpg and bmp file is and if you open them in binary mode in C and read the headers and other part of the file you can easily display them.

To know the file formats of both jpg and bmp you can look at the following links
http://www.fortunecity.com/skyscrape.../bmpffrmt.html « BMP
http://www.w3.org/Graphics/JPEG/jfif3.pdf « JPEG

I hope this will clear out the your concept and will help you to code the program yourself.

Thanks
Shabbir Bhimani
arangasoft's Avatar
Light Poster
hai shabbir,

I know the format of jpeg and bmp also.But i don't know how implement them.And also your bmp link is not open in my college.There was a message "access denied for banned site".So can you send me the complete program for my request.

bye
arangs

Last edited by arangasoft; 4Nov2004 at 13:45..
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
If you cant open that site it may be because fortunecity is free hosting provider and so has been banned in your college. To read the content of that site you can use this link
http://64.233.167.104/search?sourcei...Fbmpffrmt.html

Also I havent programmed the stuff myself and so I dont have it. I found one but dont remember the url nut could not successfully get the desired output.

Thanks
Shabbir Bhimani
arangasoft's Avatar
Light Poster
hai shabbir,

Thanks for your advice.I got the solution of my thread with the guide of your bmp format link.Your reference link was very uesful to me.

Thank you verymuch.
Thank you verymuch.
Thank you verymuch.
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Quote:
Thanks for your advice.I got the solution of my thread with the guide of your bmp format link.Your reference link was very uesful to me.
My Pleasure.

If you can share the code in the following sections Code and Projects other can also benefit. If not sharing the code can give a briefing as what you did and where to find other stuffs that would not be bad either.

Thanks
Shabbir Bhimani
arangasoft's Avatar
Light Poster
hi shabbir,
now i'm not having the code,it's in my PC.next time i'll bring the code.
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
No problem. Its upto you.
vaibhav89's Avatar, Join Date: Jan 2008
Light Poster
can u please mail me the coding as i unable to open & display .bmp format in 'c'.
vaibhav.best@gmail.com