开发者

MFC image from array

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜