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
精彩评论