tags:

views:

61

answers:

2

What is the simple and fastest way to extract raw RGB data from a BITMAP and write the raw data to a file(say .rgb)?

+2  A: 

A bitmap is already 'RAW' if it is 24-bit color. In that case, simply strip the BITMAPHEADER.

leppie
+2  A: 

Yes, assuming its unpaletted 24 bit bmp, just strip the header and read the bytes in. IIRC you might also need to reverse the byte ordering too as when reading bitmaps from files byte for byte they come in as BGR.

DrDipshit