
- Forum
- Programming Talk
- C and C++
- how to open image file in c
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 ...
-
03-19-2006, 02:38 AM #1
- 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
-
Hi Vijay,
In order to store an image u need to understand the format of file like .gif, .jpg etc.
Thanks
-Jagadish
-
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
-
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.
-
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

Reply With Quote





