convert a .bmp into arrays

  • Thread starter Thread starter Jeroen Ceuppens
  • Start date Start date
Is there a function of program to convert a .bmp into arrays?

Could you specify what do you want to do?
Do you mean array of colors (pixels) or what?

Marcin
 
RGB pixel data, also something to get header info

Look in docs at:
"System.Drawing.Bitmap"
- Size, PixelFormat, RawFormat, GetPixel(...), SetPixel(...)

"System.Drawing.Color"
- R, G, B, A, FromArgb(...), ToArgb(...)

For unsafe coding look at:
"Bitmap"
- LockBits(...), UnlockBits(...)

"BitmapData"
- Scan0,

Regards

Marcin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top