Win32 C/C++ Load Image from memory buffer

后端 未结 4 546
日久生厌
日久生厌 2020-12-03 03:47

I want to load an image (.bmp) file on a Win32 application, but I do not want to use the standard LoadBitmap/LoadImage from Windows API: I want it to load from a buffer that

4条回答
  •  没有蜡笔的小新
    2020-12-03 04:34

    No, but you can create a new bitmap the size of the current one in memory, and write your memory structure onto it.

    You're looking for the CreateBitmap function. Set lpvBits to your data.

提交回复
热议问题