Click here to Skip to main content
15,909,205 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hello

I want to make a c program that scan the image file and extract and store the pixel information in array.

I search lot of on the internet but I didn't received desire answer.

Can any one explain how It should be done and how we can done using c language programming.?

Help me.

What I have tried:

http://homepages.inf.ed.ac.uk/rbf/BOOKS/PHILLIPS/cips2ed.pdf read the artical but I want practical example.

Advanced C Programming :: HW13[^]
refer this link bit I cant understand.


Images and Pixels \Processing.org[^] but cannnot understand.
Posted
Updated 16-May-19 21:46pm

If you are using Bitmaps on Windows then MSDN gently provides sample code (see Using Bitmaps - Windows applications | Microsoft Docs[^]).
Not much straightfoward, I am afraid.
 
Share this answer
 
Comments
An@mik@ 17-May-19 4:00am    
I am beginner can you provide the hands on that?
CPallini 17-May-19 5:07am    
You could make your life easier using GDI+ with C++, see
http://supercomputingblog.com/graphics/using-lockbits-in-gdi/
 
Share this answer
 
The best articles aobut images and their manipulation are ImageStone and my personal favorite CxImage. But both are written in C++ but there is real a whole lot of knowledge and work condensed. So I guess that it will save you a lot of time to carefully explore them.

A typical work flow in image processing is to detect and resolve the image format and than read the pixels and transform them into a approbiate format.
 
Share this answer
 
v2
Comments
Rick York 17-May-19 10:56am    
I use CxImage too and I like it a lot.
An@mik@ 17-May-19 14:15pm    
can you provide me link to learn?
Rick York 17-May-19 15:39pm    
It is posted as an article at this site. The search option can find it for you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900