Exforsys
Results 1 to 3 of 3

how to open image file in c

This is a discussion on how to open image file in c within the Programming Talk forums, part of the Archive 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
    13
    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
    37
    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

    •