How can I convert a bitmap to a byte array in c++ WITHOUT the .net framework?
+3
A:
If you’re using Windows, you can use GetDIBits
to retrieve the bitmap data.
Konrad Rudolph
2008-12-09 23:32:05
A:
If your bitmap is a device independent bitmap, you can access the pixel data using GetObject and passing in a BITMAP. This avoids making a copy of the pixel data.
mackenir
2008-12-10 00:17:10