Convert cv::mat to gdi bitmap

While searching for a way to compress GDI hbitmaps to reduce their size in memory, I have found this topic about converting cv::mat to GDI bitmap:

I don’t have experience using OpenCV, suppose you ‘compress’ an image using OpenCV and then convert it to a GDI bitmap, at the end would this bitmap have the same size as a normal conversion just using GDI bitmap to hbitmap?