By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,948 Members | 852 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,948 IT Pros & Developers. It's quick & easy.

How to convert Bitmap image in a 2-D array?

P: 1
Hi
I want to store a bitmap image inro a two dimensional array in VC++.
I have tried so many ways but haven't got proper solution.
It will be very helpful if anyone can help me in doing this.
Thanx.
Aug 5 '07 #1
Share this Question
Share on Google+
1 Reply


arunmib
100+
P: 104
Hi
I want to store a bitmap image inro a two dimensional array in VC++.
I have tried so many ways but haven't got proper solution.
It will be very helpful if anyone can help me in doing this.
Thanx.
have tried many ways????

a way i see is, read the bitmap header, information header, color table and the byte array of bitmap bits. Allocate memory for each and store it in the 2-D array.
if you have doubt about the bitmap file structure, you can read this
Aug 6 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.