HBITMAP to cv::Mat
I have a HBITMAP variable in my hand which I read from a BMP file. I want to convert it to cv::Mat and then sav it as a .jpg file. I searched for the solution. But, none of my findings seemed to work. Would you show how to that in C++?
Ps: Reading BMP file directly with CV:Mat doesn't count. I am supposed to read it to HBITMAP.
Thanks.
you need a computer vision library to save a jpg ?
No, I do that with opencv. I need to convert HBITMAP to cv::Mat
how would anyone know from your question, what a hbitmap is, and what's inside ?
if you don't know what HBITMAP is, then this question is irrelevant to you.
see this and/or this to find related example code