PDA

View Full Version : How to get BITMAP data from QImage ?



cumbaba
29th January 2016, 12:28
I am newbie for C++ language and QT. I'm writing a program that get frames from video and process with a 3rd party SDK in MinGW compiler. I can get frames with OpenCV (cv::Mat). But SDK just read .bmp file data. So, I need a solution for convertion. How can I convert cv::Mat to BITMAP or QImage to BITMAP without gdiplus ?

Sorry for bad english.

anda_skoa
29th January 2016, 13:46
QImage can save in bmp format, might even do that automatically if the file extension is .bmp, but you can specify the format as an additional argument.

Cheers,
_