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
 
Back
Top