Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   How to read .bmp, .jpeg image in C language? (http://www.go4expert.com/forums/read-bmp-jpeg-image-c-language-t11855/)

nnhamane 4Jul2008 19:21

How to read .bmp, .jpeg image in C language?
 
Is there any inbuilt function in C by which one can directly read or access image?

xpi0t0s 17Jul2008 15:25

Re: How to read .bmp, .jpeg image in C language?
 
No, C is a very simple language that does not understand the concept of images. You'll need to use a library to access the image; for example you can use the standard file library (fopen etc) if you're happy to handle the format yourself, if not you'll need to get an image manipulation library (if it's a JPG then you'll need a JPG image manipulation library for example).

Musab 17Jul2008 23:03

Re: How to read .bmp, .jpeg image in C language?
 
Quote:

Originally Posted by nnhamane
Is there any inbuilt function in C by which one can directly read or access image?

I have attached the source code to read bmp from my Steganography project.

Hope it helps.

shabbir 18Jul2008 09:19

Re: How to read .bmp, .jpeg image in C language?
 
Musab, For security reasons we would not prefer the code as an attachment. Use the post to explain / post the code.

nnhamane 21Jul2008 11:53

How to read .bmp, .jpeg image in C language?
 
Actually i want to read each pixel of image, it may be of any type. For exa take .ppm image file, which contains less information. But i don`t know the exact structure of header or pixel. I am interested in C/C++ only. Plz tell me something about how to open image headers or pixels in C/C++? or tell me any sitename where i can found all information.


All times are GMT +5.5. The time now is 20:01.