display the jpg/bmp file

Discussion in 'C' started by arangasoft, Nov 3, 2004.

  1. arangasoft

    arangasoft New Member

    Joined:
    Sep 13, 2004
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Student
    Location:
    Trichy, Tamizh nadu
    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
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    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/skyscraper/windows/364/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
     
  3. arangasoft

    arangasoft New Member

    Joined:
    Sep 13, 2004
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Student
    Location:
    Trichy, Tamizh nadu
    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: Nov 4, 2004
  4. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    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?source...city.com/skyscraper/windows/364/bmpffrmt.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
     
  5. arangasoft

    arangasoft New Member

    Joined:
    Sep 13, 2004
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Student
    Location:
    Trichy, Tamizh nadu
    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. :)
     
  6. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    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
     
  7. arangasoft

    arangasoft New Member

    Joined:
    Sep 13, 2004
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Student
    Location:
    Trichy, Tamizh nadu
    hi shabbir,
    now i'm not having the code,it's in my PC.next time i'll bring the code.
     
  8. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    No problem. Its upto you.
     
  9. vaibhav89

    vaibhav89 New Member

    Joined:
    Jan 13, 2008
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice