简体   繁体   中英

convert bitmap to byte array

如何在没有.net框架的情况下将位图转换为c ++中的字节数组?

如果您使用的是Windows,则可以使用GetDIBits检索位图数据。

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM