Exforsys
+ Reply to Thread
Results 1 to 5 of 5

how to open image file in c

This is a discussion on how to open image file in c within the C and C++ forums, part of the Programming Talk category; i want to store a graphic file by taking each and every pixel into a file and then i want ...

  1. #1
    vijaykumarreddy is offline Junior Member Array
    Join Date
    Mar 2006
    Answers
    2

    how to open image file in c

    i want to store a graphic file by taking each and every pixel into a file
    and then i want to retrieve it when i need moreover i need to open .gif or .jpg atleast .bmp file using c program


  2. #2
    itzsug is offline Junior Member Array
    Join Date
    May 2004
    Answers
    22
    Hi Vijay,

    In order to store an image u need to understand the format of file like .gif, .jpg etc.

    Thanks

    -Jagadish


  3. #3
    priyaraji is offline Member Array
    Join Date
    Apr 2006
    Answers
    52
    Hi,
    You can get every pixel and store into a file and also retrieve and use it as per your choice by using graphic commands in C language.Commands like getpixel(),sertpixel(),.. are there to code your requirment.These commands take pixel from worldview an dmap it to viewport and commands are there to do viceversa also.

    To have a good reading of these commands and code your requirment have a reading of the book

    Graphics in C - By Vijay Mukhi's - BPB Publications
    Also for C++ you have C++ and Graphics - The Future of C - Vijay Mukhi's - BPB Publications

    This gives a detailed explanation of syntax of all graphic commands in C

    Sripriya


  4. #4
    raji.iitm is offline Junior Member Array
    Join Date
    Jul 2008
    Answers
    1

    image

    You can get every pixel and store into a file and also retrieve and use it as per your choice by using graphic commands in C language.Commands like getpixel(),sertpixel(),.. are there to code your requirment.These commands take pixel from worldview an dmap it to viewport and commands are there to do viceversa also.


  5. #5
    zephyr's Avatar
    zephyr is offline Member Array
    Join Date
    Dec 2007
    Answers
    31
    As I know before store an image its better to know the format of the file like .gif, .jpg etc. so, that its not difficult to store an imange.


    •    Sponsored Ads



Latest Article

Network Security Risk Assessment and Measurement

Read More...