开发者

MFC image from array

开发者 https://www.devze.com 2023-02-27 06:59 出处:网络
What is the fastest/easiest way to convert an arra开发者_运维百科y (of double) into a MFC-Bitmap to be displayed in a Picture Control?I would start with a CMemDC, where you can set every pixel by CDC:

What is the fastest/easiest way to convert an arra开发者_运维百科y (of double) into a MFC-Bitmap to be displayed in a Picture Control?


I would start with a CMemDC, where you can set every pixel by CDC::SetPixel(), and then BitBlt it over to a real CDC.

If you want a real bitmap, look here: Creating HBITMAP from memory buffer

0

精彩评论

暂无评论...
验证码 换一张
取 消