1 | initial version |
I find a way to solve it using GDI+.
Mat m_src;
Here is the implement:
Gdiplus::Bitmap bitmap(m_src.cols, m_src.rows, m_src.cols * m_src.channels(),
PixelFormat24bppRGB, (BYTE*)m_src.data);
Gdiplus::Graphics graphics(pDC->GetSafeHdc());
graphics.DrawImage(&bitmap, 0, 0);