C++ – convert bitmap to byte array

bitmapbytearrayc++windows

How can I convert a bitmap to a byte array in c++ WITHOUT the .net framework?

Best Solution

If you’re using Windows, you can use GetDIBits to retrieve the bitmap data.