How do you get the pixel data of a bmp image in C?
I can read the structure of the image but is there a way to display the pixel data?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In my opinion, the easiest way of doing it in C, and not C++ is using OpenCV. This library contains a C API that will make your life easier. You can see more details on the documentation, but your code to do a simple task like that would looks like this piece of code: